用.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,然后在重啟一下計算機,問題解決。
新聞熱點
疑難解答
圖片精選