Sometimes errors get trapped and nothing gets done with them so it can take a little while to find where the error is being swallowed. When in debug mode you can set VS to break on any exception even if is in a try catch statement. Go to Debug > Exceptions and you get the window below. If you tick the "Thrown" checkbox for Common Langauge Runtime Exceptions, VS will break on .net exceptions.

I haven't used this in detail so I don't know how useful this is or whether it works when calling a web service.
No comments:
Post a Comment