简体   繁体   English

Windows Ce 部署错误

[英]Windows Ce Deploy Error

I have M3 Terminal that have Windows Ce.NEt 4.02 I create a Windows Ce project with Visual Studio 2008 I am usin SqlCe connection for connect to SqlServer When I Deploy the my project.Vs try to install Sql Compact Frame work rep,SqlCompact Core then I get a error messaje from device like this setup not for this os What can I do? I have M3 Terminal that have Windows Ce.NEt 4.02 I create a Windows Ce project with Visual Studio 2008 I am usin SqlCe connection for connect to SqlServer When I Deploy the my project.Vs try to install Sql Compact Frame work rep,SqlCompact Core then我从类似此设置的设备收到错误消息,不适用于此操作系统 我该怎么办?

I'm not 100% clear on your question.我对你的问题不是 100% 清楚。 Is your target device running CE 4.0 or 4.2?您的目标设备运行的是 CE 4.0 还是 4.2? There is a (pretty large) difference.有一个(相当大的)差异。

The problem you're seeing, if I'm correct, is that when you attempt to deploy from Studio 2008, the SQL Compact CAB is unable to expand because it's set to not support OSes of that version number?如果我是正确的,您看到的问题是当您尝试从 Studio 2008 部署时,SQL Compact CAB 无法扩展,因为它设置为不支持该版本号的操作系统? So when you deploy, it fails to continue past that point?因此,当您部署时,它无法继续超过那个点?

Assuming that's your failure, there are some things to understand.假设这是你的失败,有一些事情要理解。

  • CE 4.x is not a "supported" target for Studio 2008. CE 4.x 不是 Studio 2008 的“支持”目标。
  • Managed code isn't supported on CE 4.0 at all. CE 4.0 根本不支持托管代码。
  • CE 4.2 supports CF 1.0 and 2.0 (though 3.5 I suspect would work) CE 4.2 支持 CF 1.0 和 2.0(虽然我怀疑 3.5 会起作用)
  • Studio 2008 only supports CF 2.0 and 3.5 Studio 2008 仅支持 CF 2.0 和 3.5

It's quite likely that the SQL Compact CAB Studio is deploying is marked for a minimum OS version of 5.0, since that's the minimum OS version officially "supported", but if you look on your PC at很有可能正在部署的 SQL Compact CAB Studio 被标记为最低操作系统版本 5.0,因为这是官方“支持”的最低操作系统版本,但如果您在 PC 上查看

%Program Files%\Microsoft SQL Server Compact Edition\v3.5\Devices\wce400

you'll see you have CABs for 4.x.你会看到你有 4.x 的 CAB。 Manually install that (copy and run) which will put the registry entries on the device that say SQL Compact is installed.手动安装(复制并运行),这会将注册表项放在设备上,说明已安装 SQL Compact。 That should make Studio "see" it and skip deployment.这应该让 Studio “看到”它并跳过部署。 You're probably going to hit the same issue for the Compact Framework as well if it's not already in ROM.如果 Compact Framework 还没有在 ROM 中,您可能也会遇到同样的问题。 In that case, manually deploy the files from在这种情况下,手动部署文件

%Program Files%\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce400

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

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