ADC running in PartialTrust

Last post 05-19-2009 7:22 AM by Sonu. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-18-2009 4:31 AM

    ADC running in PartialTrust

    Good day. On pages that I have the ADC gridview, I get the following error when attempting to browse those pages on the live site:

    Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

    The hosting company have implemented PartialTrust. I first encountered a similar problem with Enterprise Library 3.1 but this has been resolved. How can I fix this?

  •  Advertisement

    Featured Advertisement

     
  • 05-18-2009 6:38 AM In reply to

    Re: ADC running in PartialTrust

    Not to worry, I fixed it by adding [assembly: AllowPartiallyTrustedCallers()] to AssemblyInfo.cs and recompiling.

  • 05-19-2009 7:22 AM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: ADC running in PartialTrust

    Awesome. Thanks for posting the fix.

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
Page 1 of 1 (3 items)