c# - webservice-Async call -


I have a webservice running and one of its methods is not immediately backed up when the phone is done When the data is in it, once it returns, the client calls it again so that the data can be provided to the client with the data. This is to avoid voting but the problem is, it works fine in the emulator, while the webservie does not return to the device though, the client is desired under blank exception in the function.

  public string endsetsetts (System.IAsyncResult result) {object [_ _ _ _ _ _ = _garg = new object [0]; String _ pendant = (string) (base. And invoke ("gatestats", _erg, result)); Return _result; }   

In this way, I call the async function which returns when it returns data otherwise it will not return.

  contains client.getstatus + = new event heredollar & lt; GetstatusCompletedEventArgs & gt; (Updatedreceived); Client.getstatusAsync (); // It only gives data when it contains   

Does the device terminate any open connection after some time and forces the client to call the endgastats function is? I have set the timeout for 23 hours

  BasicHttpBinding binding = new system. Servicemodel. BASIC HTBeding (); Timespace interval = new timespan (23, 14, 18); Binding Resize timeout = interval; Binding.Sendtimeout = interval;   

After a one-minute client expires

  public string endgatestats (System.IAsyncResult result) {  

Logic does not return the webservice though in the nose exception.

Can anyone tell me what should I do to work on the equipment because it works fine on the emulator?

Please note that this is about Windows Phone 7 and Silverlight C

I believe the webclient timeout will expire, by default, minutes after 1.
Is the emulator and device just platforms in practice or are you separating things from time to time?

The visitor may want to consider raw toast notifications to know about your application that there is some new data to request because no voting is necessary from this device.

Comments