Security Exception

Aug 6, 2009 at 9: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=2.0.0.0, 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 9: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)

 

http://forums.asp.net/t/1211663.aspx

 

 

 

 

Aug 6, 2009 at 9:58 PM
Edited Aug 6, 2009 at 11:02 PM

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:

http://facebooktoolkit.codeplex.com/WorkItem/View.aspx?WorkItemId=11530

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/d459907e-f4db-4ae5-af50-74285f19aad6\

 

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

Coordinator
Aug 7, 2009 at 12: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.