出现错误“无法加载DLL'SQLite.Interop.dll'”,尽管它在bin文件夹中(Getting error “Unable to load DLL 'SQLi

编程入门 行业动态 更新时间:2024-10-07 07:32:39
出现错误“无法加载DLL'SQLite.Interop.dll'”,尽管它在bin文件夹中(Getting error “Unable to load DLL 'SQLite.Interop.dll'” despite it being in the bin folder)

我有一个ASP.Net Web Project,并使用NuGet包含System.Data.SQLite。

这显示在我的参考下,但是当我发布我的应用程序(通过“文件系统”)并转到控制器“ http:// localhost / api / test ”时,它显示错误:

无法加载DLL'SQLite.Interop.dll'找不到指定的模块。

我注意到,在我的项目bin\Release\net452\win7-x86\x64 ,DLL在那里,但在网站的实际bin文件夹中,interop dll 不在那里!

我如何获得它被包括在内? (我试图添加它作为参考,它不会让我)

I have a ASP.Net Web Project and used NuGet to include System.Data.SQLite.

That shows under my references but when I publish my app (via "File System") and go to the controller "http://localhost/api/test", it shows the error:

Unable to load DLL 'SQLite.Interop.dll' The specified module could not be found.

I noticed, in my project's bin\Release\net452\win7-x86\x64 the DLL is there, but in the website's actual bin folder, the interop dll is not there!

How do i get it to be included? (I tried adding it as a reference and it wouldn't let me)

最满意答案

找到interop.dll的位置并将其添加到项目中,然后选择copy always 。 这将强制发布配置文件将其复制到您的部署中。

Find the location of the interop.dll and add it to the project, then select copy always. This will force the publishing profile to copy it to your deployment.

更多推荐

bin,System,DLL,参考,电脑培训,计算机培训,IT培训"/> <meta name="description

本文发布于:2023-07-19 15:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1182573.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:它在   出现错误   加载   文件   夹中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!