Assembly Loading Error 0x80131040

Hi there, i hope someone can help me with this


I am using C# in VS2005 and trying to make use of the "Data Access Application Block" version 2

I have created a small test application that to do the testing.

If my application and the Common, Object and Dat modules are not signed DAAB runs OK but as soon as I sign them I get the following error:


**********************************************************************
An error occurred creating the configuration section handler for dataConfiguration:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

(C:\Sauce\WindowsApplication17\WindowsApplication17\bin\Debug\WindowsApplication17.vshost.exe.config line 4)
**********************************************************************

I am just learning about Strong Names etc so there is a lot I don't know (obviously)

I am creating the key pair in VS2005 in the Properties\Signing section. I am not adding it to AssemblyInfo.cs as i was told there is no need to in VS2005


Any help in solving this problem would be greatly appreciated


Regards

John




Answer this question

Assembly Loading Error 0x80131040