无法加载文件或程序异常 [英] Could not load file or assembly exception

查看:282
本文介绍了无法加载文件或程序异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么可能导致这个异常有什么想法?

Any thoughts on what might be causing this exception?

我有一个web服务凸出,当我加载的链接我得到

I have a webservice proj, when i load the link i get

无法加载文件或程序集Interop.DIB或它的一个依赖。试图加载程序格式不正确。结果
  异常详细信息:System.BadImageFormatException:未能加载文件或程序集Interop.DIB或它的一个依赖。试图加载程序格式不正确。

Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.

内部异常:

[BadImageFormatException:未能加载文件或程序集Interop.DIB或它的一个依赖。试图加载程序格式不正确。]

[BadImageFormatException: Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.]

[ConfigurationErrorsException:未能加载文件或程序集Interop.DIB或它的一个依赖。试图加载程序格式不正确。]

[ConfigurationErrorsException: Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.]

[HttpException(0x80004005的):未能加载文件或程序集Interop.DIB或它的一个依赖。试图加载程序格式不正确。]

[HttpException (0x80004005): Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.]

版本信息:结果
Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.272

Version Information:
Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

推荐答案

确定的答案是得了开始 - >运行 - >键入inetmgr并在左边的应用程序池,选择默认应用和应用程序的虚拟目录名和既确保使32比特应用到真实的,我使用IIS7.0和Windows 7 64位。

Ok the answer is Got to Start->Run->type inetmgr and on the left application pools, select DefaultAppPool and the virtual directory name of the app and for both make sure to enable 32 -bit applications to true, am using IIS7.0 and windows 7 64-bit.

这篇关于无法加载文件或程序异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆