Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 20, 2012 03:17 PM by Chaplain Doug
Nov 19, 2012 04:58 PM|LINK
I have a web site designed in ASP.NET (VB) that worked fine on my older server (Windows Server 2003 and IIS 6.x). I have moved it to a Windows Server 2008 R2 with IIS 7.x. Most of the site has been working for months. However, I tried going into edit
mode (clicking the Edit button on the formview) on a formview (which used to work on the old server and IIS 6), and I now get:
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.
What might I need to change?
Nov 20, 2012 03:40 AM|LINK
Its due to the security setting and permissions of your directory in the web server,
What happens in your code is the application attempted to perform an operation (execute external programme) not allowed by the security policy. For testing purposes you can try to add this line in your web.config if host admin doesn't lock the trust level
<trust level="Full" originUrl="" />
A more prosaic approach is looking into the call stack and using the custom permission set for security policy.
Here you can get more information
If it's a share host, you probably need to discuss with your hosting provider and get some restrictions on what you can and cannot do. For security reasons, Most share host will restrict execute extrnol programme.
Nov 20, 2012 05:47 AM|LINK
Please make sure that your site is runnning on Full Trust mode.
Nov 20, 2012 03:17 PM|LINK
Adding the <trust level="full" . . . /> as you suggested worked. Thank you.
Why did it not need that on IIS 6.x and now needs it on IIS 7.x?