The application attempts to perform operations not permitted by the security policy. To grant the required permissions to this application, contact the system administrator or change the application in the configuration file.

Source: Internet
Author: User

Today, it suddenly appeared when maintaining the original project.

Security Exception

Note:ApplicationProgramAttempts to perform operations not permitted by the security policy. To grant the required permissions to the application, contact the system administrator or change the trust level of the application in the configuration file.


 

However, it was still working normally. Later I decided it was definitely a problem with IIS settings (I used iis7.5 + server2008), but I checked it online and did not say it was reliable. None of them works.

Later, I checked the data and finally learned why. It turned out to be a connection pool permission problem.

 

 

Solution:

1. Open IIS and select the connection pool.

2. Click to select Advanced Settings.

3. Select Process Model -- Select Identity -- and set NetworkService

4. OK

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.