Wiki Link: [discussion:62302]
SecurityException: That assembly does not allow partially trusted callers.  


Jul 13 2009 at 9:27 PM

When trying to use scribdnet in a web app (Windows Azure) I recieve this error whenever I try to execute any of the code associated with the libarary:

SecurityException: That assembly does not allow partially trusted callers.

Any help will be appreciated.


Coordinator
Jul 14 2009 at 2:23 AM
This is because of the way the assembly is signed. Try downloading the source and compiling it locally without signing it. Add the project as a project reference and see if that doesn't clear up the problem.

Paul




On Jul 13, 2009, at 4:27 PM, mo_cassim <notifications@codeplex.com> wrote:

From: mo_cassim

When trying to use scribdnet in a web app (Windows Azure) I recieve this error whenever I try to execute any of the code associated with the libarary:

SecurityException: That assembly does not allow partially trusted callers.

Any help will be appreciated.


Jul 14 2009 at 5:08 PM

Thank You

After a consultation with Microsoft I realised that this was a specific problem to Windows Azure regarding the trust level of my application calling the assembly.

Normal web apps need to assign medium to full trust and azure applications can achive that by adding

<WebRole name="WebRole" enableNativeCodeExecution="true"> to the "ServiceDefinition.csdef" file.

 

Thanks - problem solved.


Updating...
© 2006-2010 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2010.1.12.16187