Add Reference ADOMD version 2.7 automatically picks version 2.8!

  • Thread starter Thread starter Marco Liedekerken
  • Start date Start date
M

Marco Liedekerken

Hi

I installed MDAC 2.8.
Every time I reference the ADOMD 2.7 version it gives me the 2.8 version
(which doesn't work properly for me).
Does anybody know how I can reference the ADOMD 2.7 version without choosing
the 2.7 version via Add Reference (this will pick the 2.8 version
automatically!! )

Thanks., Marco (dll hell is back for me)
 
Hi Marco,

Add a second reference entry for the desired version.

In your registry, find the following key.

Visual Studio .NET:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\AssemblyFolders

Visual Studio .NET 2003:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\AssemblyFolders

In here, you can add your own keys to specific assemblies. For example, add
a key called "MarcoADOMD27". The default value should be set to the full
path to the desired assembly. If your assembly is in the folder
C:\MyStuff\ThisVersion, set that path as the default value.

This can be used for "registering" any type of assembly, including ones in
the GAC. Initially, I was fooled by the GAC because each assembly has its
own version folder and I wasn't going deep enough.

Wrong:
C:\WINDOWS\assembly\GAC\System.Security

Correct:
C:\WINDOWS\assembly\GAC\System.Security\1.0.5000.0__b03f5f7f11d50a3a

Once you've added your new key with the full path to the desired assembly,
you should be able to see it in your References list the next time you open
Visual Studio. That is, you'll be able to see both versions of your ADOMD
assembly and pick the specific one you want.

Regards,

- Jarod Chay
Automated Design Systems
 
Thanks for the reply, but the reference is in my Add Reference dialog box
(this is not the problem because I can see the reference to the 2.7
version). The problem for me is that when I select the 2.7 version it adds
the 2.8 version (and not the 2.7 version that I would think)!

Do you know the answer about to problem?

Thx, Marco
 
Back
Top