连接Windows Phone以后不能调试Windows Mobile程序的问题

问题

image

如果我把Windows Phone通过Zune software链接到PC上,然后再连接Windows Mobile。如果我想使用Visual Studio 对Windows Mobile进行调试,会出现下面的错误信息。

 

5>All attempts to connect to the deployment target at port 5655 have failed. Addresses attempted:
5> 127.0.0.1.
5>The device security configuration may have disallowed the connection. Ensure that you have the appropriate certificates on your device for development. Review your SDK documentation for proper security settings for connecting to this device.
5>
5>Connect to device failed.

我想Zune software和ActiveSync底层使用了同样的技术,例如socket,而且使用了同样的端口号。

 

解决方法

先连接Windows Mobile,然后再连接Windows Phone,这样就能够调试Windows Mobile的程序了。而且我试过可以同时调试Windows Phone的程序,顺序很关键。可是我重新启动Windows Mobile的调试又不行了,提示下面的错误信息。一山不能藏二虎。

Unable to start program 'WindowsMobileProgram.exe'
An existing connection was forcibly closed by the remote host. 

posted @ 2010-11-25 06:33  Jake Lin  阅读(1538)  评论(2编辑  收藏  举报