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
<Assembly: AllowPartiallyTrustedCallers()>
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.
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.
rajkumar sharma