Partially Trusted Callers
In my Application ,When I am hosted my application , that gives an error....
Exception: System.Security.SecurityException:That 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.
Any kind of help is appreciated.
One more thing......
My assembly also referencing another assembly ( named: MySql.Data.dll ) which is a third party assembly.
Should my assembly be strong named.