构建后出现Sql compact错误 [英] Sql compact error after build

查看:59
本文介绍了构建后出现Sql compact错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在C#中有一个winforms应用程序使用sal紧凑型数据库。

它在我的系统上调试好但是在我构建安装文件并安装它后我收到错误



检测到可能的文件版本不匹配ADO.NET提供程序和SQL Server Compact的本机二进制文件可能导致功能不正确。



我有64位系统并安装了SQL Compact 64位,我从sql压缩文件夹复制的文件是64位,但我在构建选项中使用了更喜欢的32位。

可能因为这个吗?

但如果我试试安装32位版本我得到一个错误,我的系统是64位。



感谢您的帮助。



我尝试过:



Hi,

I have a winforms app in C# witch uses an sal compact database.
It debugs ok on my system but after i build the setup file and install it i get an error

Possible file version mismatch detected between ADO.NET Provider and native binaries of SQL Server Compact witch could result in an incorrect functionality."

I have a 64 bit system and have SQL Compact 64 bit installed, the files i copied from the sql compact folder are 64 bit but i used the prefer 32 bit in build options.
Could it be because of this?
but if i try to install the 32 bit version i get an error that my system is 64bit.

Thanks for the help.

What I have tried:

I have a 64 bit system and have SQL Compact 64 bit installed, the files i copied from the sql compact folder are 64 bit but i used the prefer 32 bit in build options.

推荐答案

更改设置(关闭首选32位),看看会发生什么。



FWIW,安装64 -bit版本是必需的,但如果用户的计算机上安装了这些版本,则不必更改代码以使用32位版本。您根本不应该使用首选32位。
Change the setting (turn off "prefer 32-bit") and see what happens.

FWIW, installing the 64-bit version is required, but you should not have to change your code to use the 32-bit version if that's what's installed on the user's machine. You shouldn't have to much around with "prefer 32-bit" at all.


这篇关于构建后出现Sql compact错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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