views:

92

answers:

2

I have downloaded a web project from CodePlex and am getting the following error in Application_Start:

System.Security.SecurityException: That assembly does not allow partially trusted callers.

This project references several other assemblies from other open source projects. My theory is that one of these do not have the AllowPartiallyTrustedCallers attribute set (all of the assemblies in the CodePlex project do).

How can I tell which assemblies have this attribute set, and which don't?

+1  A: 

Hi there.

I'm not sure if I've missed something in your question, but these assemblies that your referencing, can you open them in .NET Reflector? Using that will allow you to view the attributes for the file, which should show whether they have the APTC attribute set or not.

Cheers. Jas.

Jason Evans
A: 

Worked this out - I just used Reflector on the assemblies. Every [assembly] attribute is listed there including

[assembly: AllowPartiallyTrustedCallers]
Alex Angas