Change GAC path

  • Thread starter Thread starter Jake Pliskin
  • Start date Start date
J

Jake Pliskin

I am developing a Windows app in .Net 2003 that references ADODB 2.7 on a
Win 2000 box. When I move the app to a 2003 server ADODB is not being
resolved even though ADO is on the box and I don't have any problems with
other applications. This will be ran as a scheduled job without an
interface. Since I am developing this on a 2000 box the GAC path points to
C:\winnt. The 2003 server GAC path is going to be under C:\Windows. I need
to change the path of this reference and don't know how. Can anyone tell me
how to fix this?
 
Hello Jake,

To move the GAC location you can modify the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\CacheLocation = c:\newpath

I don't think this would be a problem with ADO though. For this you need
check
the registry keys associated with the registry keys used by ADO. To find
out where
the error is occuring, I recommend using the trial version of Thinstall
turning on
the option "Log Everything". Then search the log file produced for
"CoGetClassObject"
and "CoCreateObject". The last one that failed will tell you which class-id
is misconfigured.

Btw, I will soon put up a demo of linking .NET Framework + MDAC / ADO on
Thinstall.
This ensure you never have any configuration problems and you can deploy as
a single EXE
that doesn't need install. Keep your eyes peeled at thinstall, if
interested.

Jonathan
 
Back
Top