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=<*>/>

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;en-us;329065

What Does it Take to be a Great .Net Programmer

Have you ever been in search of some good .Net questions? I am confident, you would have definitely got them somewhere on the net. But here I have got a link for you, that presents some trivial questions and some nuggets about .net programming questions. Go through the following link and you will find what all were you missing...

On the same page you will get lots of other links for .Net questions. Enjoy Reading...

Memory Leak in Configuration Application Block

The Enterprise Library team recently became aware of a memory leak issue in the Configuration Application Block, which is used by all other blocks in Enterprise Library. Patch 1475, available in the Releases section of the Enterprise Library community site, contains a fix to the issue. Because the issue has the potential to impact many applications that use Enterprise Library, Microsoft strongly advises all users of Enterprise Library (January 2005) to install this patch and recompile all applications that use any of the application blocks.
See the gotdotnet workspace.

In case you are using EntLib in your application, I would suggest you to go and get this patch. This is particularly very important as Configuration Block can be treated as Mother of all other blocks. Every other block depends upon Configuration block to have access to configuration files.