用.net 2003開發Windows CE應用,解決與pocket pc通訊的問題

來源:互聯網
上載者:User
window|解決|問題  

用.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,然後在重啟一下電腦,問題解決。



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.