go to ISQsolutions.com | Contact Us

 
Q10334 - PRB: That assembly does not allow partially trusted callers.
When deploying ASP.NET 2.0 Web applications to ISQ Solutions Hosting
environment you may run into the following error:

SecurityException: That assembly does not allow partially trusted callers.

Your application is unable to call strong named assemblies that are not
annotated with AllowPartiallyTrustedCallersAttribute (APTCA). Without
APTCA, strong named assemblies issue a demand for full trust, which will
fail when the demand reaches your partial-trust Web application. In ISQ
Solutions ASP.NET 2.0 applications are configured to run in a custom
trust level based on the Medium Trust Level.

To solve this issue mark your assemblies with the attribute
AllowPartiallyTrustedCallersAttribute, the attribute should be declared
at the assembly level (usually declared at Assemblyinfo.cs or
Assemblyinfo.vb).

An example of the declaration in C# is :

[assembly:AllowPartiallyTrustedCallers]

and in Visual Basic is :

<assembly:AllowPartiallyTrustedCallers>
Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
excellent work.... It help me out from the exception. SecurityException: That assembly does not allow partially trusted callers. Approved: 7/24/2010 3:52:00 AM
Created on 1/17/2006 12:18:00 PM.
Last Modified on 9/3/2008 3:54:00 PM.
Last Modified by ISQ Solutions Inc.
Skill Level: Intermediate.
Article has been viewed 54661 times.
Rated 3 out of 10 based on 120 votes.
Print Article