我有一个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
发布评论