R – Compact Framework – Invalid URI: Hostname could not be parsed

compact-frameworkexceptionweb services

I'm writing a compact framework 3.5 application for a windows mobile device. In this application I'm consuming a web service in order to sync with our database. However, whenever I try to make a call to the web service from the device or the emulator, I get the following error: Invalid URI: Hostname could not be parsed. I'm connected to the network via R-NDIS. The service is running on my development machine right now, and I'm actually able to browse to the asmx page through pocket IE. What am I missing?

Thanks!

Best Answer

This might be a proxy problem. The following worked for me.

var service = new WebService.Service();
service.Proxy = GlobalProxySelection.GetEmptyWebProxy();
Related Topic