Question : How do I run gacutil to restore System.EnterpriseServices.<wbr />dll?

Hello,

Today, for some reason, I get an error:

could not find library 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll

when I try to build any of my web projects.  This is a new problem for me.  I read on the experts site the following solution:

From this directory:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>

I ran the following, and it resolved my issue:
gacutil.exe -i c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll

Problem is I don't understan what is meant by From this directory:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>?

When I type:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe  -i c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll

in the run command, I get Windows error:  Windows cannot find "C\Program Make sure you typed the name correctly.

I know the gacutil.exe exists in the directory BUT how what do I type in the run command to make this work?

Thank you

Vince Stack


Answer : How do I run gacutil to restore System.EnterpriseServices.<wbr />dll?

I am afraid that is not how you fix that issue. The reason you received that error is because the "Program Files" part of your path had a space. Thus the shell assumed that the path you were using was "C:\Program" and not "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe" That is why I put "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe" in quotes above. I am afraid entering the command as you did in your first(the question) post would still yield the same error.
Random Solutions  
 
programming4us programming4us