Debugging Asp.net ProgramWhen the access to a certain component is rejected, it is usually painful to restart . Net Sometimes it is good. Sometimes it cannot be restarted. IIS even restart the computer, where the ah, the error formats and methods are summarized as follows:
this error message is generally similar to the following method:
server error in the"/opcnetwebui "application.
Configuration Error
Description: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:"Hnas. opcnet. systemframework".
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 "hnas. opcnet. systemframework" cannot be loaded.
=== Pre-bind state information === log: displayname = hnas. opcnet. systemframework (partial) log: appbase = file: // C:/inetpub/wwwroot/opcnetwebui 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: hnas. opcnet. systemframework log: Attempting download of new URL File: // C:/Windows/Microsoft. net/framework/v1.1.4322/Temporary ASP. net files/opcnetwebui/cd6f9cb5/24463f67/hnas. opcnet. systemframework. DLL. log: Attempting download of new URL File: // C:/Windows/Microsoft. net/framework/v1.1.4322/Temporary ASP. net files/opcnetwebui/cd6f9cb5/24463f67/hnas. opcnet. systemframework/hnas. opcnet. systemframework. DLL. log: Attempting download of new URL File: // C:/inetpub/wwwroot/opcnetwebui/bin/hnas. opcnet. systemframework. DLL. log: policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind ). log: Post-Policy Reference: hnas. opcnet. systemframework, version = 0.0.0.0, culture = neutral, publickeytoken = NULL |
Version: Microsoft. NET Framework Version: 1.1.4322.2300; ASP. NET version: 1.1.4322.2300
The most common causesIndexing ServiceService. There are two solutions,
1. DisableIndexing Service
Ii. ConfigurationAsp.netThe temporary directory of is notIndexing ServiceService impact.
ConfigurationAsp.netThe temporary directory of is notIndexing ServiceThe service impact process is as follows:
1Start--Management tools--Computer Management, Open Computer Management
2Expand the left Tree of Computer Management"Services and Applications"And expand"Index Service"And expand"System"And expand"Directory"Node.
3On the Right of Computer Management, we can see the configured index service directory.
4In"Directory"Right-click the node and select"New"--"Directory"
5In"Add directory"In the dialog box, enterAsp.net. The default value is:C: \ <WINDIR> \ Microsoft. NET \ framework \ <versionnumber> \ temporary ASP. NET filesDirectory.<Version number>Indicates. NetVersion.
6In"Is it included in the index?"Select"No"
7, Click"OK"Button
8In"Index Service"Right-click the node and restart the Index Service.
Reference:
Http://support.microsoft.com/default.aspx? SCID = KB; en-US; 329065