gpt4 book ai didi

c# - 无法加载文件或程序集异常

转载 作者:IT王子 更新时间:2023-10-29 04:09:58 25 4
gpt4 key购买 nike

对可能导致此异常的原因有任何想法吗?

我有一个网络服务项目,当我加载我得到的链接时

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: 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: 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): 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

最佳答案

好的,答案是开始 -> 运行 -> 键入 inetmgr,然后在左侧的应用程序池中,选择 DefaultAppPool 和应用程序的虚拟目录名称,并确保将 32 位应用程序启用为 true,我正在使用IIS7.0 和 windows 7 64 位。 enter image description here

关于c# - 无法加载文件或程序集异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9419403/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com