I have an Application_Error handler that collates various information. Part of this information includes Session variables e.g. string Username = "Username: " + Session["UserName"];
This all works fine except if I want to trace program code in the VS2008 debugger. I then get the error "Session state is not available in this context" when it reaches this line.