Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when an ASP.NET application tries to create a new application domain: "Can not access file 'System.Web' because it is being used by another process"


View products that this article applies to.

Symptoms

Consider the following scenario. You create a Microsoft ASP.NET application. The application tries to create a new application domain. In this scenario, you may receive the following configuration error message in the Web browser:
Configuration Error

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.

Parser Error Message: Can not access file 'System.Web' because it is being used by another process.
Notes
  • In this error message, the words "can not" are a misspelling for the word "cannot."
  • This problem is more likely to occur when the Web server is under a heavy load.

↑ Back to the top


Cause

This problem occurs when a process modifies the Machine.config file at the same time that the System.web.dll file tries to access the Machine.config file. This causes a file sharing violation.

Note The error message that is mentioned in the "Symptoms" section indicates that the System.web.dll file cannot be accessed. However, the problem is that the Machine.config file cannot be accessed by the System.web.dll file.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: KB919079, kbprb, kbtshoot

↑ Back to the top

Article Info
Article ID : 919079
Revision : 4
Created on : 7/6/2006
Published on : 7/6/2006
Exists online : False
Views : 301