C# Puma.NET异常“System.Runtime.InteropServices.COMException”

C# Puma.NET异常“System.Runtime.InteropServices.COMException”,c#,.net,ocr,C#,.net,Ocr,尝试使用Puma.NET OCR库识别文件夹中的一组图像时,第一个图像被成功识别,但之后出现错误: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Puma.Net.dll Additional information: <0x00000000>: ?????? ???. 我找到了,但他们似乎对我的情况没有帮助 谢谢我通过使用“using”语句找到了

尝试使用Puma.NET OCR库识别文件夹中的一组图像时,第一个图像被成功识别,但之后出现错误:

An unhandled exception of type 'System.Runtime.InteropServices.COMException' 
occurred in Puma.Net.dll

Additional information: <0x00000000>: ?????? ???.
我找到了,但他们似乎对我的情况没有帮助


谢谢

我通过使用“using”语句找到了答案

 using(Puma.Net.PumaPage inputFile = new Puma.Net.PumaPage(imagePath))
        {
        }

我在我的机器上试过了,但没有成功。我收到错误Puma.Net.dll中出现“System.Runtime.InteropServices.COMException”类型的异常,但未在用户代码中处理其他信息::Library Puma.dll未加载。请尝试删除该库,然后重新包含它,该库可与NuGet PM1一起使用。检查环境路径变量是否包含以下路径:C:\Program Files x86\Puma.NET\COM服务器2。同时授予执行用户读/写Com服务器的权限。
 using(Puma.Net.PumaPage inputFile = new Puma.Net.PumaPage(imagePath))
        {
        }