Comparing the assembly name resulted in the mismatch: Minor Version



My web site will not load if I reference sql from c# 2008.
I think the problem is hidden in some dark corner of the Microsoft universe.
If you can help me please explain in simple terms as I am not not a
Microsoft geek.

The error looks like this-

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'ADODB,
Version=7.10.6070.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or
one of its dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:


Line 63: <compilation debug="true">
Line 64: <assemblies>
Line 65: <add assembly="ADODB, Version=7.10.6070.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
Line 66: <add assembly="System.Runtime.Serialization.Formatters.Soap,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 67: <add assembly="System.Windows.Forms, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


Source File: C:\Inetpub\NOCOrders\web.config Line: 65

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'ADODB, Version=7.10.6070.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.


=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = ADODB, Version=7.10.6070.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/Inetpub/NOCOrders/
LOG: Initial PrivatePath = C:\Inetpub\NOCOrders\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Inetpub\NOCOrders\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: Post-policy reference: ADODB, Version=7.10.6070.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/8ba750fd/8f6619ba/ADODB.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/root/8ba750fd/8f6619ba/ADODB/ADODB.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/NOCOrders/bin/ADODB.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing
terminated.




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433



.



Relevant Pages

  • Could not load file or assembly
    ... All our assemblies are strongly named. ... Enterprise Library Configuration tool, and load web.config file, I get ... failed to load in the 'LoadFrom' binding context of the AppDomain with ... LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET ...
    (microsoft.public.dotnet.framework)
  • Re: Could not load file or assembly
    ... not found exception. ... All our assemblies are strongly named. ... Enterprise Library Configuration tool, and load web.config file, I get ... LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET ...
    (microsoft.public.dotnet.framework)
  • Comvisible object, config files, and classic ASP
    ... We are developing a comvisible object that will be called from an asp ... This object in turn will load other .net assemblies, E.G. Entlib, ... assemblies require settings in a configuration file. ...
    (microsoft.public.dotnet.general)
  • RE: word interop assembly not loading
    ... An error occurred during the processing of a configuration file ... Could not load file or assembly ... To enable assembly bind failure logging, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Make a DLL in C# for FoxPro
    ... Interop from managed -> COM is a different story, here we are talking about new developments, and here you have probably accepted the larger memory footprint :-) ... The first is handled by the DLL/C++ code I posted which loads the .NET runtime and allows loading of assemblies and types. ... If you're not adverse to registering components you can completely skip this step and just use the .NET wrapper component from FoxPro with CreateObject. ... *** Load Static Method ...
    (microsoft.public.dotnet.languages.csharp)