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.