在64位操作系统上部署32位应用程序 [英] Deploying a 32 bit application on a 64 bit OS

查看:162
本文介绍了在64位操作系统上部署32位应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SQLite数据库中编写了这个指纹应用程序。它在我的开发32位操作系统上运行得相当惊人,但是当我部署到64位操作系统时,它会崩溃并显示一条错误消息,指出它无法加载System.Data.sqlite.dll。我真的需要帮助来解决这个问题。在此先感谢。

I've this fingerprint application I wrote around an SQLite database. It runs quite spectacularly on my development 32 bit OS, but when I deploy to a 64 bit OS it crashes with an error message saying that it unable to load "System.Data.sqlite.dll". I'm really in need of help to get to a solution to this problem. Thanks in advance.

推荐答案

答案取决于你正在使用的是什么。



问题是可能你的代码可能正在编译为目标AnyCPU。这意味着在32位Windows上,它将作为32位应用程序运行,在64位Windows上作为64位应用程序运行。



现在,因为你不能在同一个过程中组合32位和64位代码,你必须确保你的代码与你用来获取sqlite数据库的.DLL的架构相匹配。



因此,进入项目属性并强制目标为x86(对于32位)或x64(对于64位)并重新部署到目标计算机。
The answer depends on what you're using.

The problem is probably that you're code is probably being compiled to target AnyCPU. Which means that on 32-bit Windows it'll run as a 32-bit app and on 64-bit Windows as a 64-bit app.

Now, since you can't combine 32- and 64-bit code in the same process, YOU have to make sure that your code matches the architecture of the .DLL's you're using to get at the sqlite database.

So, go into your Project Properties and force the target to be x86 (for 32-bit) or x64 (for 64-bit) and redeploy to the target machine.


这篇关于在64位操作系统上部署32位应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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