|
Fixing "Application attempted to perform an operation not allowed by the security policy..." (VB.Net) |
|
|
Written by: Justin Rich
Fixing "Application attempted to perform an operation not allowed by the security policy..."How to fix "Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system administrator, or use the Microsoft .Net Framework Configuration tool." error.
This error usually occurs on a network when you have an executable application that you're trying to run from your local computer across the network. The security settings for your local computer are to blame, and not the server.
To fix this error, you will need to do exactly as the error says and go to the .Net Framework Configuration tool in Control Panel > Administrative Tools > .Net Framework X.X Configuration > Runtime Security Policy > Adjust Zone Security.
From here, you will make changes to the computer or the user depending on your desire for security, click on the Local Intranet and adjust the slider bar to Full Trust. By default, it's one notch off that. After changing it, hit next, verify, and then Finish. Now try running your application across the network again, and it should work fine.
The only stipulation for this process is that the local computer will have to have the .Net Framework version installed. This can be downloaded for free from Microsoft's Windows Update website.
For 2.0 applications, the local computer must have the 2.0 SDK installed, which can be found here: http://www.microsoft.com/downloads/details.aspx?FamilyID=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&displaylang=en
If you have any advice for this problem, feel free to let me know and I'll include it in the article. |
|
|
|
|
|