Reputation: 49
I'm using Visual Studio 2008 on my local PC. My Code kept on network Drive. when i am trying to run it from my local machine i am getting below security exception.is there anyway i can Grant Permissions to network folder?
*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.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.*
Upvotes: 0
Views: 664
Reputation: 20992
You have a few options, including but not limited to:
Personally, I would opt for moving the code to the local machine for development for reasons that go beyond the CAS permissions problem, but ymmv...
Upvotes: 1