Click here to Skip to main content
15,897,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Server Error in '/' Application.
--------------------------------------------------------------------------------


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 'IBM.Data.DB2, Version=8.1.2.1, Culture=neutral, PublicKeyToken=7c307b91aa13d208' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:



Line 50: <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
Line 51: <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
Line 52: <add assembly="IBM.Data.DB2, Version=8.1.2.1, Culture=neutral, PublicKeyToken=7C307B91AA13D208">
Line 53: <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
Line 54: <add assembly="IBM.Data.DB2, Version=9.0.0.2, Culture=neutral, PublicKeyToken=7C307B91AA13D208">


Source File: C:\inetpub\ZConRep\web.config Line: 52

Assembly Load Trace: The following information can be helpful to determine why the assembly 'IBM.Data.DB2, Version=8.1.2.1, Culture=neutral, PublicKeyToken=7c307b91aa13d208' could not be loaded.



WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Posted

1 solution

Looks like you need to add ref to the file IBM.Data.DB2. add this dll files to your bin folder and build your project again and update these files on the server. it should solve your issue.
 
Share this answer
 
Comments
Member 10659913 11-Mar-14 3:18am    
Thank you so much Ravi
Member 10659913 11-Mar-14 6:20am    
Ravi, I am failing to get IBM.Data.DB2.dll file.Can you please put some light..!
ravikhoda 11-Mar-14 6:39am    
do you have this DLL file in ur local project. may be try and search on this site

http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/index.jsp?topic=%2Fcom.ibm.swg.im.dbclient.adonet.doc%2Fdoc%2Fc0010960.html
Member 10659913 11-Mar-14 7:00am    
Ravi,I am not sure why the error is coming though I have IBM.Data.DB2.dll file in my project.
Thanks for the help.:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900