【问题标题】:Unable to load DLL 'SQLite.Interop.dll无法加载 DLL 'SQLite.Interop.dll
【发布时间】:2018-10-17 22:36:54
【问题描述】:

我有一个 WCF 服务,它将访问 SQLite 数据库。使用 Visual Studio WCF 测试客户端,服务可以正常启动,我可以正常调用服务函数。但是当我将服务移动到 IIS 时,连接到数据库时抛出了以下异常:

Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

我的服务平台目标是“Any CPU”,dll“System.Data.SQLite.dll”是x86,我是通过Nuget下载的。我应该如何设置 IIS 配置或我的服务以使其工作

【问题讨论】:

    标签: sqlite wcf iis


    【解决方案1】:

    我通过参考解决了这个问题:https://stackoverflow.com/a/28092497/7352168+
    将 x86 和 x64 SQLite.Interop.dll 复制到 IIS 目录。

    【讨论】:

      猜你喜欢
      • 2012-10-13
      • 1970-01-01
      • 2018-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多