I am developing a mobile application that connects to a web service. This web service is located on the network. I am having problems in connecting with the web service via mobile. Now the best part is that i created a windows application that has the web reference to the same web service, is working just fine. The windows application is able to call all the methods. And when i call the same method from my windows mobile application during debugging it give me error:
------------------------
An unhandled exception of type 'System.Net.WebException' occurred in System.Web.Services.dll
Additional information: Could not establish connection to network.
----------------
I am using Pocket PC 2003 Second Edition Mobile Emulator to test my mobile application.
Points that i already have considered are:
- Emulator is conencted with Active Sync.
- .NET compact framework is installed on the emulator.
Now i've finally figured that the web service written by company's developer is using .NET Framework version 1.1. What can i possibly do to compile my code (that i have written using Visual Studio 2005 which uses .NET framework 2.0) in .NET Framework 1.1
Any help is greatly, by heart appreciated.
Thanks,
Saj

Mobile connectivity with Web Service Problem
Xelestial
Your problem is unlikely to have something to do with framework version. Most likely reasons are:
- Using "localhost" as a server's name - that only works on a server itself by definition of the "localhost".
- Various networking issues and/or security issues like firewalls and access rights. Try accessing WS URL from Pocket IE on device. If you can’t do that your application won’t be able to do it either. Consult your network administrator for a solution.
Anand Raman - MSFT
Thanks Ilya, thanks alot. This is what i was missing actually.
In my mobile device my settings for network usage for applications using the internet was set to "My ISP". and i had done the settings for network on the "My Work".
once i set this in the settings every thing started working.
Thanks alot in the end.