Deploy to Pocket PC 2003 - Connect to device failed
I am having a problem deploying a very simple smart device application (in fact the has only a single control) to my Pocket PC (Toshiba E355 - Windows Mobile 2003).
I consistently receive the following message:
Connect To Device Failed
I have also tried to connect to my device as follows:
- From the Toolbar:
Tools --> Connect to Device - Selected Platform:
Pocket PC 2003 - Error Message:
Connection failed. No connection could be made because the target machine actively refused it.
I have installed the following in the recommended order as follows:
DMA Transport Update for VS2005 Beta 2
ActiveSync 4.0
Windows Mobile 5.0 SDK for Pocket PC
Windows Mobile 5.0 SDK for Smartphone
Can anyone give me a clue as to what is going on and how to resolve this issue!
Thanks!
Are you able to synchronize mails with your device, over ActiveSync? If not, there might be a problem with your ActiveSync connection. Are there prompts on the device before you get this error message?
Was this device ever used with Visual Studio 2003 .NET or previous versions of the VS2005 beta? If so, you may want to try to soft reset the device. If that still does not work, you might want to try to hard reset the device. Make sure you back up your data that is on device before doing that.
I just rebuilt my machine. Clean install of everything. I get no prompts what so ever. I also did a hard reset of my Pocket PC prior to the build.
I've been doing some additional reading. Do I need to install Windows CE 5.0 first? I am currently using windows CE 4.2.
Thanks
The 2003 Pocket PC OS is supported by VS2005 so you do not have to install Windows CE 5.0 on your device. Does the ActiveSync features like sync, explore, etc work with this device? Do you connect over USB, serial or another method?
ActiveSync works fine. Connection is via USB.
I was receiving the same error repeatedly. Activesync Connect worked via usb. I was able to explore the device via the activesync explore menu command, but connection via Visual Studio Tool | Connect, and deployment failed. I connected my device to my network via my wireless network hub, and I was then able to connect via the connection tool on the menu, and got my simple application deployed. Not sure what the magic was in this. Could be that the act of setting up the network connection got the device to listen? Hope this is repeatable!
I get the same error when I'm trying to debug on an emulator.
I create a new PDA application, press "Start Debugging", and choose the PDA emulator from the list. The emulator then loads, but doesn't load the application. After a while, Visual Studio gets the error "Connect to Device Failed".
As I've just installed Visual Studio, and haven't changed any settings, what could be wrong? Could it be the same problem?
Paul
have you tried to uninstall and re-install the PPC SDK?
Have you also made sure that your phone is app unlocked? (De cert)
hi
I am facing the same problems too.. have u found out the way to solve this?
Thanks!
Hi,
I also have this kind of a problem. I can't connect to my PDA to debug on the Targe.
Prevoiusly I received the message "The configuration data for this product is corrupt. Contact your support personnel".
I then followed the advise in a other thread :
>>
If you have installed a previous version of VS2005 on a computer, you might still have configuration files that are now invalid. Close VS, delete the following directory:
\Documents and Settings\<localuser>\Local Settings\Application Data\Microsoft\CoreCon
and restart VS
<<
The sittuation seems to be a bit better now, since I don't get this old message any more. Now I get the message "Error on connecting to device"
I have installed ActiveSync 4.1, my PDA workes fine with it (sync and file up- download)
Please help!
Regards
Rainer
I am not sure what the real reason is, but now my connection is OK and I can debug.
What I have done...?
- On the PDA -> Settings -> selected the NE2000 card, (which sould not have any effects since I don't have a nework device in my PDA)
- Restarted my Computer
Well how ever. It now is working.
Regards
Rainer
i am still having this same situation. running .net 2005, activesync 4.1, mobile 4.21.
i cna sync and and explore my ppc without problem but can't deploy.
no connection.... target machine actively refused it.
any ideas? thanks.
Reason can be if you have checked ssl connection for active sync on pda
Well done rsa3des!!! I was having the same trouble as everyone else, albeit with VS2005, but this nailed it

Hi , Just try removing all the breakpoints in the application and then try. Hope this solves the problem.