Giddy Up! - Erik Lane's Blog
Home Contact Syndicate this Site (RSS 2.0) Syndicate this Site (Atom) Login
  354 Posts :: 2 Stories :: 395 Comments :: 105 Trackbacks

 

 

Post Categories

Archives

  

Article Categories

Blogs I Frequent

Contributor

Currently Reading

Reference

 

On a current project we're building some sites using the Plumtree portal framework.  To make it all work we need to reference the Plumtree dll's.  In building my projects I would from time to time get a .NET configuration error when building the project.  The error would say:

"access denied" "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".

This happened for one of the Plumtree assemblies and show the line in the machine.config "ADD assembly="*".  This didn't happen all the time but was getting to be a headache since I would need to reboot my machine to get my project to compile.


After googling a few times I believe I've found the fix (man I hope so).

CAUSE:
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.

RESOLUTION:
If you do not use Index Server on the server, you can disable it.  Or if you use Index Server, you can exclude the Temporary ASP.NET Files directory from the folders that the Index Server scans.

Here is the MSDN KB article.



posted on Tuesday, November 02, 2004 8:02 AM

Feedback

  
Blog Reactions

# re: .NET Configuration Error & headache 11/2/2004 4:14 PM The Wife

Oh cool - did you get it worked out? I've been praying you would!

# re: .NET Configuration Error & headache 11/2/2004 4:21 PM Erik

Looks like I did. It's not been an issue today. woohoo!!

# re: .NET Configuration Error & headache 1/4/2005 11:32 PM Vidya

Thank you very much for the fix to this configuration error. It certainly was giving me a big headache. Now the application works just fine.

# re: .NET Configuration Error & headache 4/29/2005 7:20 AM Paolo

I still have this darn problem, despite Index Server shutdown and SP1 intalled. DevEnv.exe still locks my DLL...

# re: .NET Configuration Error & headache 5/3/2005 12:49 AM E.

Paolo, have a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;843370">http://support.microsoft.com/default.aspx?scid=kb;en-us;843370 or if you use VSS at http://support.microsoft.com/default.aspx?scid=kb;en-us;843370">http://support.microsoft.com/default.aspx?scid=kb;en-us;843370. The latter resolved my issue.

# re: .NET Configuration Error & headache 8/10/2005 1:45 PM Bryan

I think I have this issue worse than anyone I've read about. No indexing running, and I get the lock error even after rebooting, and before I can even open a source (.cs) file! It won't even let me open the files to edit them, let alone compile them!

Strangly enough, only VS.net complains about opening the file. Any other program (notepad) will open it! WTF?! Anyone else have this problem?

# re: .NET Configuration Error & headache 8/10/2005 1:49 PM Erik

Bryan, That does sound like a serious issue. I've not seen it that bad. I hope you do find the answer.

# Acne Pimples Treatments Scars Products Medication 9/27/2007 4:35 AM Acne Pimples Treatments Scars Products Medication

While the internet continues to gather ultram migraine guidance, we\'ll attempt to deliver them to you.

Post Feedback

Title:   
Name:  
Url:   
Comments: 
 
Enter Code Here