Partially Trusted Callers RRS feed

  • Question

  • 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=""/>

    Mind that I am using 2.0 

    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()> 

    This assembly is setting


    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.


    Second , What is the link  of strong name with this error.

    Should my assembly be strong named. 

    Friday, June 8, 2007 7:07 AM