Article ID: 324519 - Last Review: February 19, 2007 - Revision: 3.4

PRB: "Can not Access File 'AssemblyName' Because It Is Being Used by Another Process" Error Message in ASP.NET

This article was previously published under Q324519
Expand all | Collapse all

SYMPTOMS

You may receive the following error message in ASP.NET:
Parser Error Message: Can not access file 'AssemblyName' because it is being used by another process.

Source Error:
Line x1: <add assembly="System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line x2: <add assembly="System.EnterpriseServices, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line x3: <add assembly="*"/>
Line x4:</assemblies>
Line x5:
NOTE: In this error message, the words "can not" are a misspelling for the word "cannot."

You receive this error message if the following conditions are true:
  • The assembly that is specified in the error message is a signed assembly and is not installed in the Global Assembly Cache (GAC); instead, the assembly is in the Bin directory of the ASP.NET Web application. -and-

  • Your ASP.NET Web application has just been restarted.

CAUSE

This problem occurs because signed assemblies in the Bin directory are not supported.

RESOLUTION

To work around this problem, install the assembly to the GAC.

STATUS

This behavior is by design.

APPLIES TO
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
Keywords: 
kbhotfixserver kbqfe kberrmsg kbpending kbprb KB324519
 

Article Translations

 

Related Support Centers