0

我面临着奇怪的问题。我的应用程序是在 .Net 2010 (C#)、sqlite 1.0.84.0 中开发的。Win7 x86。当我在其他计算机(Win 7 32 位)上传输应用程序时,出现此错误:

Problem signature:
  Problem Event Name:   CLR20r3
  Problem Signature 01: aprox.minipos.exe
  Problem Signature 02: 1.0.0.0
  Problem Signature 03: 51d5f704
  Problem Signature 04: System.Data.SQLite
  Problem Signature 05: 1.0.84.0
  Problem Signature 06: 50edc3cb
  Problem Signature 07: 179
  Problem Signature 08: 1c
  Problem Signature 09: System.ObjectDisposedException
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:    1050
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

我必须提到,所有文件都被复制(System.Data.SQLite.dll 等,等等......),并且在其他计算机上安装了 SQLite 1.0.84.0

我还更改了 app.config 并添加了以下行:

    <DbProviderFactories>
      <remove invariant="System.Data.SQLite"/>
      <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
    </DbProviderFactories>
  </system.data>

然后我更改了对 1.0.86.0 的引用并发生了同样的错误。同样在 Build options 中配置为 Any CPU。

我很困惑......该怎么办?

4

1 回答 1

0

尝试将目标平台更改为 X86 而不是任何 CPU。引用 32 位/64 位 DLL 似乎是个问题。

这一切可能还有更多的使用信息:Visual Studio“Any CPU”目标是什么意思?

于 2013-07-04T23:17:52.283 回答