简体   繁体   English

如何在Windows 64位上使用SQL Server Compact Edition 32位?

[英]How to use SQL Server Compact Edition 32bits on Windows 64bit?

I'm actually using SQL CE for my C# .NET application and so far I didn't have any issues with it. 我实际上在C#.NET应用程序中使用SQL CE,到目前为止,我还没有遇到任何问题。

But recently I had to pass my AnyCpu compiled application to a 32-bit only compilation (due to a DLL only available in x86). 但是最近,我不得不将我的AnyCpu编译应用程序传递给仅32位编译器(由于DLL仅在x86中可用)。 But now, DbProviderFactories doesn't find anymore SQL CE and throw an exception that explain I might not have it installed on my computer (Win 7 64-bits). 但是现在,DbProviderFactories找不到SQL CE,并引发异常,说明我可能未在计算机上安装它(Win 7 64位)。

I guess it's because he wants to link on the SQL CE 32-bit version instead of the 64-bits installed version. 我猜是因为他想链接到SQL CE 32位版本而不是64位安装版本。 But when I try to install the 32-bit version of SQL CE, the installer tells me as I'm on a 64-bit OS, I must use the 64-bits installer... 但是当我尝试安装32位版本的SQL CE时,安装程​​序告诉我,因为我使用的是64位操作系统,因此必须使用64位安装程序...

Does anyone had this issue by willing using a 32-bit application using SQL CE on a 64-bit OS? 是否有人愿意在64位操作系统上使用使用SQL CE的32位应用程序来解决此问题? Is there any solution? 有什么解决办法吗?

Thanks for any help! 谢谢你的帮助!

machine.config中缺少必需的DbProvider条目,请重新安装两个运行时MSI进行修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM