Sunday, March 11, 2012

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed

(about 10 computers). As of yesterday, two of these computers are

unable to start the application, and failing with the error below. All

other computers run the application just fine.

System.IO.FileNotFoundException: Could not load file or

assembly 'ADODB, Version=7.0.3300.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot

find the file specified.
File name: 'ADODB, Version=7.0.3300.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.

I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop

Assemblies folder (development computer), but this is version

7.10.3077.0 (file properties version)

I see ADODB.dll as a project reference, but this shows version

7.0.3300.0, and shows the path to the PIA folder. I have no clue why

these are not showing the same version number. Local Copy is false.

Installing MDAC 2.8 on the failing deployment target machines did not help.

Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to

us on other computers. What I found I needed to do was place a copy of

ADODB.dll into the application folder. Even though the very SAME

version of ADODB was ALREADY installed at the deployment computer's

GAC. This should not be necessary, and makes no sense to me. I really

believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error

|||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

No comments:

Post a Comment