Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大约一周前,我能够在 Windows 7 x64 上使用我的 64 位 .net 应用程序扫描图像。我现在收到一个错误,当 WIA 互操作库加载时说它或其依赖项之一试图以不正确的格式加载 dll。
此错误通常是 x64/x32 问题。
它过去曾奏效。我尝试从 IDE 重新生成互操作库,但没有帮助。
Photoshop x64 仍然可以获取图像,因此 WIA 确实有效。
我不知道中间发生了什么。
我已经战斗了几个小时。有什么建议么?
问候克雷格。
我见过这种情况发生在:
a.) 它是一个 Web 应用程序,您正在使用 IIS。您必须告诉应用程序池允许 32 位应用程序。
b.) 您不是在 x86 中编译,而是在 x64 中编译。如果您使用的是 32 位二进制文件,则必须在 x86 中编译。