This will fail with a socket exception if you are not connected. So you may
need to check the network status first, either way you should wrap in a try
catch.
Peter

Signature
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com
Thanks for replying Peter,
I did have it in a try/catch and it was connected via a cable. Possibly an
issue with ActiveSync 4.5 Beta - don't know.
Incidentally, using PPP_PEER on WM2005 also throws an error; a less serious
unable to resolve address exception. This is still strange though, as I'm
able to use PocketPing to verify that the connection is there.
> This will fail with a socket exception if you are not connected. So you
> may need to check the network status first, either way you should wrap in
[quoted text clipped - 32 lines]
>>>>
>>>> Can anyone shed any light on this?
Paul G. Tobey [eMVP] - 27 Dec 2006 16:25 GMT
Are you sure that you're calling the method with the right signature. I've
done a resolve of PPP_PEER on a WM5 device while AS is connected and it
worked fine. The problem seems to be localized to your code.
Paul T.
> Thanks for replying Peter,
>
[quoted text clipped - 42 lines]
>>>>>
>>>>> Can anyone shed any light on this?