Occasionally, access is denied during compilation and debugging of the Asp.net program.

Source: Internet
Author: User

Problem description:
Write Asp.netProgramWhen compilation and debugging are frequent, access is often rejected. Shape:
 
Analyzer error message: Access Denied: "Microsoft. Web. UI. webcontrols ".
Source error:
Line 197: <add Assembly = "system. Web. Mobile, version = 1.0.5000.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a"/>
Row 198: <add Assembly = "*"/>
.....
Source File: C: \ WINDOWS \ microsoft.net \ framework \ v1.1.4322 \ config \ machine. config row: 198

Cause:

Due to frequent changes, the corresponding directories or files in the c: \ windows \ microsoft.net \ framework \ v1.1.4322 \ temporary ASP. Net files \ directory are locked by the Index Server and the index is rebuilt. Therefore, it is usually released in a few minutes and returns to normal. (Before I understood it, I had to restart the site, restart IIS, and disable vs.net. It seemed very helpful, (Now I know that I have earned enough time-_-''), but it is a cure for the problem. Now I understand that the whole world is quiet. Haha)

Solution:

Method 1: Disable the Index Server. (It is best to disable it in the service. It will be quiet in the future .)
Method 2: configure the Index Server to not index the directory.

Related Article

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.