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
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
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 .)
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]
Method 2: configure the Index Server to not index the directory.
2.1 start-management tools-Computer Management (win2003 location, similar to other operating systems) Open Computer Management
2.2 expand the "service and application" node in the left-side tree of Computer Management, then expand the "Index Service" node under it, and then expand the "System" node under it, expand the "directory" node under it.
2.3 On the right of Computer Management, we can see the configured index service directory.
2.4 right-click the "directory" node and choose "New"> "directory"
2.5 In the Add directory dialog box, enter the temporary file directory of Asp.net in the input box. The default value is:
C: \ <WINDIR> \ Microsoft. Net \ framework \ <version number> \ temporary ASP. NET Files directory.
<Version number> indicates the. NET version to be processed.
2.6 are "included in the index ?" Select "no"
2.7. Click OK.
2.8 right-click the "Index Service" node and restart the Index Service.
Method 3: You can delete bin \ XX. PDB.