I have a statement inside a try/catch block, but the exception is not getting caught. Can anyone explain?
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 139: try
Line 140: {
Line 141: return (int)Session["SelectedLeadID"];
Line 142: }
Line 143: catch (Exception ex)
Update This is an ASP.NET application. In the catch block, a new exception is thrown. The code you see is what is displayed on the ASP.NET error page.