N
Neville Lang
Hi all,
I just spent most of the day trying to sort out a problem I had with failing
to deploy a CF app on VS2005 to my WM5.0 device.
As background, I have VS2005 SP1 on a Vista 64 computer. I have two devices,
a WM2003 Pocket PC and a WM5.0 Pocket PC used for testing. I do not use the
emulators.
I recently debugged a MSI installer / uninstaller issue I had on my WM2003
device and after that was completed then moved on to another issue in the
main app unrelated to MSI installer / uninstaller. I chose to unplug my
WM2003 Pocket PC from the USB port and then plugged in my WM5.0 Pocket PC. I
then made a change to the code, setup a breakpoint and then pressed F5 to
Debug. As it was deploying, I suddenly realised the Target Device set for my
Project was still on "Pocket PC 2003 Device" from the previous issue. I then
aborted the deployment.
Once I changed over the Target Device to Windows Mobile 5.0 Pocket PC
Device, I then tried to Debug my program (F5) on that device. However, I for
quite a long time I kept getting one of the following two Deployment error
messages:
"An operation was attempted on something that is not a socket."
or
"The network connection was gracefully closed."
Scanning the internet and the Microsoft did not shed any light on my problem
with either of these two error messages.
Solution
-----------
For many hours, I tried all different things in settings etc. to overcome
these error messages including deleting and re-establishing the device
Partnership. The thing that I found finally worked for me was to do a hard
reset on my WM5.0 Pocket PC device. As soon as I did that the Deployment and
Debug of my app worked fine.
I can only think that originally deploying using the WM2003 Target somehow
screwed things up on the WM5.0 device. Anyway, a hard reset of the device
did the trick.
I just thought I would present my finding here in the CF group in case
anyone else comes across this problem running two devices.
Regards,
Neville Lang
I just spent most of the day trying to sort out a problem I had with failing
to deploy a CF app on VS2005 to my WM5.0 device.
As background, I have VS2005 SP1 on a Vista 64 computer. I have two devices,
a WM2003 Pocket PC and a WM5.0 Pocket PC used for testing. I do not use the
emulators.
I recently debugged a MSI installer / uninstaller issue I had on my WM2003
device and after that was completed then moved on to another issue in the
main app unrelated to MSI installer / uninstaller. I chose to unplug my
WM2003 Pocket PC from the USB port and then plugged in my WM5.0 Pocket PC. I
then made a change to the code, setup a breakpoint and then pressed F5 to
Debug. As it was deploying, I suddenly realised the Target Device set for my
Project was still on "Pocket PC 2003 Device" from the previous issue. I then
aborted the deployment.
Once I changed over the Target Device to Windows Mobile 5.0 Pocket PC
Device, I then tried to Debug my program (F5) on that device. However, I for
quite a long time I kept getting one of the following two Deployment error
messages:
"An operation was attempted on something that is not a socket."
or
"The network connection was gracefully closed."
Scanning the internet and the Microsoft did not shed any light on my problem
with either of these two error messages.
Solution
-----------
For many hours, I tried all different things in settings etc. to overcome
these error messages including deleting and re-establishing the device
Partnership. The thing that I found finally worked for me was to do a hard
reset on my WM5.0 Pocket PC device. As soon as I did that the Deployment and
Debug of my app worked fine.
I can only think that originally deploying using the WM2003 Target somehow
screwed things up on the WM5.0 device. Anyway, a hard reset of the device
did the trick.
I just thought I would present my finding here in the CF group in case
anyone else comes across this problem running two devices.
Regards,
Neville Lang