PCL Async calls - detect "Can't connect to server" exception

Hello,

I’m using Portable class library (WinInetHttpClientChannel) with Xamarin Android and can’t find the way to catch exception “server is not accessible”:

this.fClientChannel.OnException += (object sender, RequestExceptionEventArgs e) => {
      //never fired when server is not accessible
};
...
public Task<List<table_xy>> GetData() {
	return DataAdapter.LoadListAsync<table_xy>(DataAdapter.GetTable<table_xy>());
}
...
try {
	var tmp = await GetData();	
}
catch {
	//never fired when server is not accessible
}

RODA.NET 8.1.85.1143, Latest Xamarin

Thanks,
Dejan

Hello

Thank you for your report. Seems it tries to connect to the server with infinite timeout. I am currently working on adding the timeout support. Meanwhile could you drop a mail at support@remobjects.com so we’ll provide you the updated assemblies immediately after they become available (so you won’t have to wait until the next Beta)?

Regards