Knowledgebase Home Page  >  RapidSpell Web ASP.NET  >  Troubleshooting
Search the Knowledge Base
How do I correct assembly load errors at run-time (eg. CS0006 or "Can not access file 'AssemblyName' because it is being used by another process")
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=54&catId=58

Options

Print this page
Email this to a friend
If errors are being shown at runtime (in the browser) such as:
 
Compiler Error Message: CS0006: Metadata file 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\....\AssemblyName' could not be found
 
or
 
Parser Error Message: Can not access file 'AssemblyName' because it is being used by another process.
 
please refer to MS KB article 324519 (http://support.microsoft.com/?id=324519), which explains that signed assemblies must be stored in the GAC rather than the applications BIN directory.  All RapidSpell Web DLLs are signed (strong named), and therefore to correct this problem, please add them to the GAC, using
 
gacutil /i Keyoti.RapidSpellWeb.dll
gacutil /i Keyoti.RapidSpellMDict.dll
 
 
These commands must be run in the same directory as the RapidSpell Web DLLs, and the gacutil location will need to be on your path.  To avoid add the gacutil location to your path, you can copy the gacutil.exe file from your .NET framework installation directory (eg. C:\Program Files\Microsoft.NET\SDK\v1.1\Bin) to the same directory as the RapidSpell DLLs and then run the commands.
 
 

Note:

 To use DLLs that are in the GAC only, you need to specify a full reference in the ASPX page,

ie. If you have
 
 <%@ Register TagPrefix="rapidspellweb" Namespace="Keyoti.RapidSpell" Assembly="Keyoti.RapidSpellWeb" %>
 
it needs to be
 
 <%@ Register TagPrefix="rapidspellweb" Namespace="Keyoti.RapidSpell" Assembly="Keyoti.RapidSpellWeb, Version=3.1.1.0, Culture=neutral, PublicKeyToken=58d9fd2e9ec4dc0e" %>
 
you should change to the exact version number against the DLL version you are using.
 

Related Questions:

Attachments:

No attachments were found.