I\'m working on my first ever assignment in ASP.NET. It\'s a website and I work in Visual Studio.
What I can\'t figure out is how to get a detailed error message to
Change your catch to be catch (Exception ex) and you can then use Response.Write(ex.Message)
catch
catch (Exception ex)
Response.Write(ex.Message)
Ideally, you would have different catches for different exception types. This is a bucket approach to catching all exceptions.