0

我正在尝试使用 ATAPI 或 Itapi 3 (Gulmar) 制作来电显示检测器,但在我的操作系统中它不起作用,出现以下异常:

System.BadImageFormatException 未处理
Message=Could not load file or assembly 'ITapi3, Version=1.0.0.3, Culture=neutral, PublicKeyToken=36377d9f6f1f4883' 或其依赖项之一。试图加载格式不正确的程序。
Source=IncomingSample
FileName=ITapi3, Version=1.0.0.3, Culture=neutral, PublicKeyToken=36377d9f6f1f4883
FusionLog
==== 绑定前状态信息===
LOG: User = Dragon-PC\Dragon
LOG: DisplayName = ITapi3, Version= 1.0.0.3,Culture=neutral,PublicKeyToken=36377d9f6f1f4883
(完全指定)
日志:Appbase = file:///C:/Users/Dragon/Downloads/Compressed/ITapi3_Binaries/bin/Samples/Samples/IncomingSample/bin/x64/发布/
日志:初始 PrivatePath = NULL
调用程序集:IncomingSample,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null。
===
LOG:此绑定在默认加载上下文中开始。
LOG:使用应用程序配置文件:C:\Users\Dragon\Downloads\Compressed\ITapi3_Binaries\bin\Samples\Samples\IncomingSample\bin\x64\Release\IncomingSample.exe.Config
LOG:使用来自 C:\Windows 的机器配置文件\Microsoft.NET\Framework64\v2.0.50727\config\machine.config。
日志:后策略参考:ITapi3,版本=1.0.0.3,文化=中性,PublicKeyToken=36377d9f6f1f4883
日志:尝试下载新 URL 文件:///C:/Users/Dragon/Downloads/Compressed/ITapi3_Binaries/bin/Samples /Samples/IncomingSample/bin/x64/Release/ITapi3.DLL。
ERR:无法完成程序集的设置(hr = 0x8007000b)。探测终止。

StackTrace:
在 IncomingSample.IncomingForm..ctor()
在 IncomingSample.Program.Main() 在 C:\Users\Dragon\Downloads\Compressed\ITapi3_Binaries\bin\Samples\Samples\IncomingSample\Program.cs:line 17
InnerException:

我尝试为 x64 和 x86 设置 Active 解决方案平台,但它不起作用,我该怎么办?

4

1 回答 1

5

Atapi 库可以在 Windows 7 64 位上运行(我已经使用了很长时间),但是你必须为平台目标 x86 编译你的项目(如果你正在编译 atapi 库也设置为 x86)

最好的问候, 皮奥特

于 2012-08-14T15:29:09.093 回答