WebForms .Net中的Tessnet2返回DllNotFoundException liblept172.dll [英] Tessnet2 in WebForms .Net returns DllNotFoundException liblept172.dll

查看:180
本文介绍了WebForms .Net中的Tessnet2返回DllNotFoundException liblept172.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Tessnet2编写了一个基本应用程序,现在尝试将其移至WebForms网站.

I wrote a basic app using Tessnet2 and now trying to move it to a WebForms website.

复制了逻辑等,但是当我运行它时,我收到一条错误消息(Exception:DllNotFoundException)

Copied the logic etc. but when I run it I get an error message(Exception: DllNotFoundException)

"An exception of type System.DllNotFoundException" occured in Tesseract.dll but was not handled in user code.
Additional information: Failed to find library "liblept172.dll" for platform x86."

如上所述,此代码可用作C#控制台,并在应用了必要的逻辑以将其移至网站后,我认为我已正确移动了所有内容,但始终收到此错误.有什么想法要看吗?

As said above, this code works as a C# console and after applying necessary logic to move it to the website I thought I moved everything correctly but keep getting this error. Any thoughts where to look?

更深入地了解它,失败的部分实际上是ILibraryLoaderLogic

Digged it out a bit deeper and the part that fails is actually ILibraryLoaderLogic

IntPtr LoadLibrary(string fileName);

即使文件确实存在? (

Even if the file is actually there? (there appears to be platform difference in what

SystemManager.GetPlatformName();

在控制台在x64下运行但网站在x86下运行时返回

returns as the console runs under x64 but website under x86)

推荐答案

很明显,事实已经发生了很长时间,但是在我的情况下,事实证明我部署的计算机没有VS2015 x86&安装了x64运行时. 运行时是如下所述的依赖项: https://recordnotfound.com/tesseract-charlesw-26531

Obviously quite long after the fact, but in my situation it turns out the machine I deployed to didn't have the VS2015 x86 & x64 runtimes installed. The runtimes are dependencies as described here: https://recordnotfound.com/tesseract-charlesw-26531

这篇关于WebForms .Net中的Tessnet2返回DllNotFoundException liblept172.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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