Security Exception

Aug 6, 2009 at 10:12 PM

I am getting a security exception error when I try to load a page with an ATGi control on it.


Security Exception

Description: The application attempted 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's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

[No relevant source lines]

Source File: App_Web_v-cxybzk.0.cs    Line: 0


Aug 6, 2009 at 10:22 PM

UPDATE: I found the following link, pertaining to .NET application Trust levels.  Unfortunately I do not have direct access to IIS, and will have to call my IDC (as they have disabled my ability to modify the trust level via web.config)





Aug 6, 2009 at 10:58 PM
Edited Aug 7, 2009 at 12:02 AM

UPDATE #2: After speaking to my IDC (GoDaddy - Shared Hosting), I discovered that it is not possible to give a .NET 3.5 Application Full Control on a shared GoDaddy server.  That means, if you want to use this app... according to GoDaddy, you need to be on a dedicated server or with another host.


Relevant Links Pertaining to this Issue:\


(To be clear, this issue pertains to my server host and does not warrant change in the application.  I just wanted to leave it here in the event that someone ran into a similar issue. I only use the GoDaddy server for my personal site, but this add-in is being put into something that is on a dedicated server.)

Aug 7, 2009 at 1:25 PM

Thanks for the information here. This uses the Facebook Toolkit, so you are right to link to the issue over there. But, if that ever gets solved, you are immediately going to run into an issue with my stuff because I had to resort to some reflection in one part of this project. If you can get reflection permission, then I think that my stuff will be fine.  See this article for a bit about reflection in web apps.