Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

WCF RIA service - time limit for query

$
0
0

Dear Gurus!

I am call the wcf ria service

proxy = new myAsyncServiceClient();
proxy.ServiceAsyncMethodCompleted += new EventHandler<ServiceAsyncMethodCompletedEventArgs>(proxy_GetUserCompleted);
// Calling service      
proxy.ServiceAsyncMethodAsync(""); 

...

void proxy_GetUserCompleted(object sender, ServiceAsyncMethodCompletedEventArgs e)
{
 if (e.Error != null)
   {
      textBox1.Text = "Error getting the user.";
   }
 else
   {
      textBox1.Text = e.Result.TimeDetected.ToString();
// after getting answer calls service again
      proxy.ServiceAsyncMethodAsync(""); 
   }
}
If the wait lasts for more than about a minute then I get message about error - "For an HTTP request to "http://localhost:64588/myAsyncService.svc" timed out."

How can I get around the problem?


Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>