Last post Feb 20, 2009 04:52 PM by BM27348
Jun 08, 2007 05:03 AM|rajkumarsharma|LINK
In my Application ,When I am hosted my application , that gives an error....
assembly does not allow partially trusted callers.
Description: Application attemped to perform an
operation not allowed by the security policy.
To grant this application the required permission,
please contact your system administrator or change the
application trust level in the configuration file "
I called the Hosting Company and they confirm that
the application runs on a Full Trust but their system
supports application with Medium Trust.
Ok , So I make my changes in Web.Config as
<trust level="Medium" originUrl=""/>
I am also making a reference to an assembly from where this error is coming and added one line in it's assembly info class as
But still the error is same .
To test the application I set
<trust level="Medium" originUrl=""/> in my machine level config file.
What else should I do.
This is very urgent.
Two more thing to add..
First ,I am using asp.net 2.0 and secondly, my assembly is referencing another assembly ( named: MySql.Data.dll ) which is a third party assembly.
Second , What is the link of strong name with this error.
Should my assembly be strong named.
Feb 20, 2009 04:52 PM|BM27348|LINK
This is a security issue - when you move your application to a shared hosting environment it is running on medium trust, as opposed to the full trust that you develop with. This means that there are a few adjustments that you have to make to your code and
a few restrictions that you'll have to live with.
The full story is explained in an article here:
ASP.NET web applications on shared hosting sites. Hope it helps.