小编use*_*300的帖子

ASP.NET - IIS7 - IBM DB2问题

我正在一个调用DB2数据库的ASP.NET网站上工作.我在托管该站点的Windows 2008服务器上安装了Visual Studio.当我在Visual Studio中调试站点时,使用集成的Web服务器,我可以连接到数据库,并且站点运行正常.当我在IIS7中设置站点时,在同一台服务器上,由于以下错误,我无法访问该站点或数据库.

以下是技术细节:

Windows 2008 Server
IIS 7
Visual Studio 2010 Premium
DB2 v9.5.301.436

Could not load file or assembly 'IBM.Data.DB2' or one of its dependencies. An attempt was made to load a program with an incorrect format. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.BadImageFormatException: Could not load file or assembly …
Run Code Online (Sandbox Code Playgroud)

asp.net iis db2 iis-7

11
推荐指数
3
解决办法
1万
查看次数

标签 统计

asp.net ×1

db2 ×1

iis ×1

iis-7 ×1