IBM DB2问题-System.BadImageFormatException:无法装入文件或程序集IBM.DB2.DLL或其依赖项之一 [英] IBM DB2 issue--System.BadImageFormatException: Could not load file or assembly IBM.DB2.DLL or one of its dependencies
问题描述
我收到上述错误消息.我做了足够的研究,尝试了各种选择,但还是没有运气.
I am getting the above mentioned error message. I have made enough research and tried out various options but still no luck.
以下是详细信息:
OS: Windows 7 64 bit version
Visual studio version: 2013 Premium
.NET framework version is : 4.0.30319
ASP.NET version: 4.0.30319.34249
IIS version: 7.0
DB2 installed path: C:\Program Files (x86)\IBM
DLL path: C:\Program Files (x86)\IBM\SQLLIB\BIN\netf40\IBM.DB2.dll
DLL Version: 9.7.4.4
我还已将解决方案配置管理器平台更改为Any CPU ,并且通过将属性启用32位应用程序设置为True ,我还更改了应用程序池中的设置. >.
I have also changed my solution configuration manager platform to Any CPU and also I have changed the settings in the application pool by setting the property enable 32-bit application to True.
但是仍然出现相同的错误.还有其他解决方法吗?
But still am getting the same error. Is there any other workaround?
请帮助我提供您的建议.
Please help me with your suggestions.
推荐答案
This problem happened me these days and it was solved following what this IBM document says, that is to go to the reference in the project and set "Copy local" to false for DB2 dlls, referencing diretly the ones from the DB2 client setup
这篇关于IBM DB2问题-System.BadImageFormatException:无法装入文件或程序集IBM.DB2.DLL或其依赖项之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!