Blog :: BoatMoney Web Design

Aug 4

Written by: BM Web Design
8/4/2010 12:08 PM 

"Could not load file or assembly System.EnterpriseServices" error... you'll find topics on this error on just about every discussion board out there but this post is simply for me to recall my handling without having to search.  I tried packaging the individual dll with my installation package but the machines have write permissions attached to the GAC... I tried packaging the complete .NET Framework 3.5 with my installation and while this worked on some machines, it blew up on others.

Fix #1: simply copy the System.EnterpriseServices dll from C:/Windows/Microsoft .NET/Framework/v2.0.50727 to the GAC (global assembly cache) (C:/Windows/assembly)

This normally works, but guess what, the machines at the company I was doing the project for have certain restrictions on the GAC.

Fix #2: and this was the fix that I stuck with. Uninstall and reinstall .NET Framework 3.5 on each machine. What this will do is essentially drop all libraries into the GAC for you.