Hey, 

This is the second time I am raising this issue. I am using an asmx web service 
but switching between wifi and 3g is absolutely impossible. 
I am using mainly managed threads and make sure to use: 

using (var ns = new NSAutoReleasePool()) 
{ 
using(var svc = ServiceFactory.NewService()) 
{ 
// sync calls 
} 
} 

After switching from Wifi to 3G and vice versa, no calls complete. The first 
time I get a network failure, the second time a connection timeout. 
I've been reading around and it is seems others have the same problem. If I let 
the device sleep for about 10 minutes, it the network starts working fine. 

I am using Miguel's Reachability class to check before making web service 
calls. I have tried using the StartWWAN method and as many say it doesn't work. 

Then, I cam accross a post at: 
http://escoz.com/nsurlconnection-monotouch-helper-class/ which says that 
NSUrlConnection is much more reliable. 
I really don't want to rewrite the service to be RESTful and start using 
NSUrlConnection. 

This is a huge problem, are there any solutions, I'm exhausted searching on 
google on this matter. 

Thanks 

Roland 
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to