Windows Mobile和VS2008,无法连接到设备连接到、设备、Windows、Mobile

2023-09-04 05:36:35 作者:简约的

我刚刚给自己买了一个新玩具,手机采用Windows Mobile 6,我试着写在VS2008中一个简单的Hello World的应用程序(C#),我无法连接到该设备。它通过ActiveSync(通过USB),我可以浏览文件系统,但是,当我尝试建立应用程序并将其部署到设备因故连接,它说:连接到设备的失败。

I just got myself a new toy, a phone with Windows Mobile 6. I'm trying to write a simple "Hello World" app in VS2008 (C#) and I can't connect to the device. It's connected via ActiveSync (via USB), I can browse the file system, but for some reason when I try to build the app and deploy it to the device, it says "Connect to device failed."

我安装了Windows Mobile 6专业版SDK,以及在.NET Compact Framework 3.5运行在设备上,一切工作正常。我可以运行模拟器上的应用程序,但由于一些奇怪的原因,我无法连接到该设备。我知道这是不是很多的信息去,但我在一个总损失!

I installed the Windows Mobile 6 Professional SDK as well as the .net Compact Framework 3.5 runtime on the device and all that worked fine. I can run the app on the emulator, but for some strange reason I can't connect to the device. I know this isn't alot of info to go on, but I'm at a total loss!

推荐答案

有几种可能性,但最有可能拥有一切与安全。运营商必须选项从安装山寨版的应用程序锁定装置以prevent你。也有安全的粒度。许多设备可以运行的应用程序,但只有当他们签名。有些设备允许您更改此设置,或者他们至少会告诉你,一个无符号的应用程序正在试图运行,并询问你是否确定。使用设备安全的PowerToy 可能允许您提供设备,让您可以部署。了解更多关于这里供应和的这里。

There are a few possibilities, but most likely it has everything to do with security. Carriers have the option to lock a device to prevent you from installing "unauthorized" applications. There is also the granularity of security. Many devices can run apps, but only if they are signed. Some devices allow you to change this setting, or they at least will tell you that an unsigned app is attempting to run and ask you if it's OK. Using the Device Security Powertoy might allow you to provision the device to allow you to deploy. Read more on provisioning here and here.

您可能需要与任何一个开发证书登录应用程序或者一个真实的 - 特别是如果你计划部署的应用程序

You might need to sign the app with either a development certificate or a real one - especially if you plan to deploy the app.