Webservices in smart devices

Hi All,

Iam facing 1 problem with 1 of my application created in VS2005 . My application tries 2 call a webservice asynchronously at some point of the application but it always ending with an exception like threading/ web exception. The application run successfully in VS2003 without any error. How can i solve this issue..

Help me please

Ratheesh




Answer this question

Webservices in smart devices

  • Keith Chapman

    Cradling the emulator and connect it using Activesync solves my problem

    Thanks..Thanks a lot



  • J A Y

    Common reasons for that are:

    - Using 'localhost' instead of actual server name.

    - Networking issues.

    - Proxy settings issues.

    You should see if you can access the server from Pocket IE to make sure you can reach the server at all.



  • Vasanths R

    I tried all possible attempts ..but still the error remains.. Can u tell me what additional setting i have to make in windows mobile5.0 smartphone emulator. Pocket IE also not functioning

     

    Thanks

    Ratheesh

     



  • sweet_salt

    Oh, you're using emulator Then you have to enable networking support on emulator or cradle it and get connection via active sync. If you don't know how, please search emulator support forum, it’s been covered.



  • Jakein2006

    Which exception with which error message and which stack trace Something about using Control.Invoke, perhaps



  • mojoshaneman

    Thanks for the reply

    I applied control.Invoke() for changing the contol's text in the function which calls the webservice . but calling a webservice method raises following exception

    Error message : Could not establish connection to network

    Stack trace :

    at System.Net.HttpWebRequest.finishGetResponse() at System.Net.HttpWebRequest.GetResponse() at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse() at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse() at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke() at myStarSign.myStarWebService.Service1.isRead() at myStarSign.frmConnect.ServiceCallbacks() at System.Web.Services.Protocols.WebClientAsyncResult.InvokeCallback() at System.Web.Services.Protocols.SoapHttpClientProtocol.doAsyncInvoke() at WorkItem.doWork() at System.Threading.Timer.ring()

    Thanks

    Ratheesh



  • Webservices in smart devices