I am developing a Windows Phone application using .Net Compact Framework 3.5
I am trying to connect web services from this application.
He does not connect it in First Attempt, but successfully connects in the second and subsequent attempts.
In the first attempt, the error "Web Exception" appears.

I use the following code to connect:
SalesService.SalesService obj = new SalesService.SalesService();
string s = obj.CheckForValidService();
It gives an error in the CheckForValidService method from the Reference.cs file.

Harsh source
share