Asp.net Program Occasionally, access is denied during compilation and debugging.
Problem description:
When compiling and debugging Asp.net programs frequently, 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.
(This problem really gave me a headache for a while, and I was very sick and dead. I am so confident that I don't dare to share it with them .)
| FCKeditor. dll is mainly used in the website background. I don't know when this problem has occurred until the project ends. I am in a hurry because of this bug .. Thank God. I finally found a similar problem on the Internet .. Configuration Error Note:An error occurred while processing the configuration file required to provide services to the request. Check the following error details and modify the configuration file as appropriate.Analyzer error message:Access Denied: "fredck. fckeditorv2 ". Source error:
Row 196: <add Assembly = "system. enterpriseservices, version = 1.0.5000.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "/> line 197: <add Assembly =" system. web. mobile, version = 1.0.5000.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "/> row 198: <add Assembly =" * "/> row 199: </assemblies> row 200: </compilation>
|
Source file:C: \ windows \ microsoft.net \ framework \ v1.1.4322 \ config \ machine. configRow:198 Assembly loading tracking:The following information helps determine why the assembly "fredck. fckeditorv2" cannot be loaded.
=== Pre-bind state information === log: displayname = fredck. fckeditorv2 (partial) log: appbase = file: // C:/Documents and Settings/Administrator/desktop/zcw log: initial privatepath = bin calling Assembly: (unknown ). === log: policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind ). log: Post-Policy Reference: fredck. fckeditorv2 log: Attempting download of new URL File: // C:/Windows/Microsoft. net/framework/v1.1.4322/Temporary ASP. net files/zcw/f61b1adf/d1f5d9bc/fredck. fckeditorv2.dll. log: Attempting download of new URL File: // C:/Windows/Microsoft. net/framework/v1.1.4322/Temporary ASP. net files/zcw/f61b1adf/d1f5d9bc/fredck. fckeditorv2/fredck. fckeditorv2.dll. log: Attempting download of new URL File: // C:/Documents and Settings/Administrator/desktop/zcw/bin/fredck. fckeditorv2.dll. log: publisher policy file is not found. log: No redirect found in host configuration file (c: \ windows \ Microsoft. net \ framework \ v1.1.4322 \ ASPnet. config ). log: using machine configuration file from c: \ windows \ Microsoft. net \ framework \ v1.1.4322 \ config \ machine. config. log: Post-Policy Reference: fredck. fckeditorv2, version = 2.2.2106.29420, culture = neutral, publickeytoken = 4f86767c9b519a06
|
Solution: 1. Go to Control Panel> Administrative Tools> service, find the Indexing Service, and right-click to stop it. Or: 2. You can enter the net stop cisvc command in the MS-DOS to prohibit! [I did not try] |