Missing DLL Reference workaround

Tags: Missing DLL Reference, Workaround, GAC, Bin

(System.EnterpriseServices not found on building web application)Here is a simple workaround for error that says "System.EnterpriseServices" was not found. Here are error symptoms. For example, if you have some website (as in my case) in development that would not build anymore, even if you didn't change configuration or anything. If in error details is stated something like "System cannot found XX.YY assembly or some of its components" you can try one of these two workarounds:

Workaround A: You can add that assembly manually in Bin folder of your web application using "Add reference..." item on context menu from right/click on root folder of that web app in Solution explorer. This way, copy of .dll will be saved in Bin folder of your web app.

Workaround B: Check if there is entry in Global Assembly Cache (GAC) named XX.YY i.e. if that assembly is listed in folder %Windir%\AssemblyIf not, you can try to re-add it using gacutil from Visual Studio 2005 Command Prompt:gacutil -i "AssemblyFullPathAndFileName" /For copy .dll in windows explorer from its folder to GAC. For example, System.EnterpriseServices.dll is inside folderc:\WINDOWS\Microsoft.NET\Framework\v2.0.50727so I just copied that file in GAC and all errors are vanished...

No Comments