I have the following C # code:
try { response = this.writeDataToChannel(writeRequest); if (response.Failures != null) { Console.WriteLine(response.Failures.First().cause); } } catch (TimeoutException te) { Console.Error.WriteLine(te.Message); }
When I run this code in the release and push a lot of data into the service, VS2010 stops at the line "writeDataToChannel" with the exception of a TimeoutException. Should my catch block catch the exception and just print it when the timeout happens?
The code "writeDataToChannel" was generated from WSDL, records always work until I push tons of data to the web service, so I don't think there is a problem with my request.
This is not a namespace problem, in both cases it is a System.TimeoutException exception.
source share