Debugging ASP.NET Web Request Failures: The Complete Guide

from blog Blog posts on .NET Software Development, C#, and Debugging on Michael's Coding Spot, | ↗ original
You’re sending an HTTP request to your ASP.NET server, and out of the blue, it returns a 500 error. Now what? The error code doesn’t say too much by itself. Did a database request fail? What was the exact database query? Was there an exception? What kind of exception? On which line of code did it happen? And what were the local variables?...