If you install VS2005 and then ODP.Net you will probably get a strange error when you will try to use Oracle Explorer for the first time:

Package ‘Oracle Developer Tools for Visual Studio .NET’ has failed
to load properly ( GUID = {D601BB95-E404-4A8E-9F24-5C1A462426CE} ).
Please contact package vendor for assistance. Application restart is
recommended, due to possible environment corruption. Would you like to
disable loading this package in the future? You may use
‘devenv /resetskippkgs’ to re-enable package loading.
 

The problem is an assembly mismatch. As Christian Shay (principal product manager for ODP.net at Oracle) said in an announcement, there are 2 options to solve this issue:

1. My recommended solution:

Execute the following command from a command prompt:

gacutil /i <Oracle Home>\odp.net\bin\2.x\Oracle.DataAccess.dll

where is the Oracle Home directory where you installed ODT 2005. For example, on my machine is c:\oracle\product\10.2.0\client_1.

2. Reinstall:

Deinstall ODP.NET 1.x from your machine (if you’re not using it) and install ODP.NET 2.0 in the same Oracle Home.

Andrei
http://www.webxpert.ro


One Response to ““Package load failure” error using ODP.Net & VS2005”
  1. Frank HagenNo Gravatar says:

    Hello Andrei,

    I have the same problem with vs2005 and ODP. When i start gacutil and the rest of the line in the commandline the system is searhing and didn’t do anything.
    I also uninstall odp.net1 from the system still the error is there.
    any other suggestions.

Leave a Reply