快精灵印艺坊 您身边的文印专家
广州名片 深圳名片 会员卡 贵宾卡 印刷 设计教程
产品展示 在线订购 会员中心 产品模板 设计指南 在线编辑
 首页 名片设计   CorelDRAW   Illustrator   AuotoCAD   Painter   其他软件   Photoshop   Fireworks   Flash  

 » 彩色名片
 » PVC卡
 » 彩色磁性卡
 » 彩页/画册
 » 个性印务
 » 彩色不干胶
 » 明信片
   » 明信片
   » 彩色书签
   » 门挂
 » 其他产品与服务
   » 创业锦囊
   » 办公用品
     » 信封、信纸
     » 便签纸、斜面纸砖
     » 无碳复印纸
   » 海报
   » 大篇幅印刷
     » KT板
     » 海报
     » 横幅

用.net 2003开发Windows CE应用,解决与pocket pc通讯的问题

 

用.net 2003作Windows CE应用时,遇到一个问题。工程编译通过,但在部署到pocket pc时出现如下的错误:
------ 已启动部署: 项目: PDA, 配置: Debug Pocket PC ------

正在部署到 Pocket PC 设备正在使用 TCP 连接传输

 

错误: 无法建立连接。请确保此设备已经与开发计算机建立了物理连接。
---------------------- 完成 ---------------------

    生成: 1 已成功, 0 已失败, 0 已跳过
    部署: 0 已成功, 1 已失败, 0 已跳过

感觉很希奇,我明明用ActiveSync是可以连上的。到msdn上搜了一下(http://support.microsoft.com/default.aspx?scid=kb;en-us;816826)
原文如下:
Certain users on the desktop computer may notice that the deployment to a Pocket PC device that is connected with ActiveSync is not successful and you receive the following error message:
Could not establish a connection with the device. Please make sure the device is connected and working properly.
Other users on the same computer may be able to deploy and to debug by using the same device, may find that ActiveSync is working correctly, and may find that the file /Windows/ConManClient.exe is not copied to the device when they try to deploy or to debug. These symptoms indicate a possible corrupted security key container.

On the computer that is running Visual Studio .NET, run the DelDesktopCryptKey.exe utility from the command prompt to clean the security key container for the current user. DelDesktopCryptKey.exe is installed with the Windows CE Utilities for Visual Studio .NET 2003 Add-on Pack. By default, DelDesktopCryptKey.exe is located in the Program Files/Microsoft Visual Studio .NET 2003/CompactFrameworkSDK/WinCE Utilities/DelDesktopCryptKey folder.

原来是由于security key container过期了,安装Windows CE Utilities for Visual Studio .NET 2003 Add-on package 后,在命令行中到Program Files/Microsoft Visual Studio .NET 2003/CompactFrameworkSDK/WinCE Utilities/DelDesktopCryptKey目录下运行DelDesktopCryptKey.exe,然后在重启一下计算机,问题解决。





返回类别: 教程
上一教程: DataGrid连接Access的迅速分页法(1)??需求与现状
下一教程: .NET真面目(上)

您可以阅读与"用.net 2003开发Windows CE应用,解决与pocket pc通讯的问题"相关的教程:
· 我的.Net下应用程序发布问题的简易解决方案
· VS.NET下水晶报表分发时的问题及解决2
· 解决.NET(WebApplication)安装部署的不能选择安装路径的问题
· VS.NET Beta2安装后添加/删除程序不能正常启动的问题的解决方案
· .net+oracle+crystalReports开发web应用程序学习笔记(二)
    微笑服务 优质保证 索取样品