Sunday, April 10, 2005

Access is Denied; An error occurred during the processing of a configuration file required to service this request.

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

<add assembly=<System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a>/>
<add assembly=<System.EnterpriseServices, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a>/>
<add assembly=<*>/>
</assemblies>

Have you ever seen this kind of error while running your web application. I am one of the victim of this kind of error and bet it is not at all related to your code. Not even to any of assemblies you are using. Root Cause for this error lies somewhere else, where you wouldn't suspect at all. Root Cause of this problem is Indexing Service. Microsoft describes this behaviour in following manner...
If you run Index Server (Cisvc.exe), then Index Server may rescan the Temporary ASP.NET Files directory while it requests a Microsoft ASP.NET page. Cisvc.exe then holds a lock on the Temporary ASP.NET Files directory for one to five minutes. The length of time of the lock depends on the size of the directory that causes the Aspnet_wp.exeprocess (or W3wp.exe process for applications that run on Microsoft Internet Information Services [IIS] 6.0) to not load the particular DLL.

Solution to this problem is to disable indexing service on your computer. To disable this service follow below steps:

1. Click Start -> Run and then type Services.msc.
2. Locate Indexing Service from the list of services, and then click Indexing Service Properties from the subform.
3. On the General tab of the Indexing Service Properties dialog box, in the Startup type drop-down item list, click Disabled.
4. Click OK.

For more elaborate information on this issue, please check with following article on Microsoft Support
http://support.microsoft.com/default.aspx?scid=kb;en-us;329065

No comments: