An unhandled security exception has occurred.

  • Thread starter Thread starter Jay Pondy
  • Start date Start date
J

Jay Pondy

I have an ASP.Net 2.0 page that inherits from a class that contains a
Page_Error handler. In the Page_Error handler I use
Server.GetLastError to determine what caused the error.

Normally this works great and all of the pages use the common error
handler declared in the base class with one exception: If I have a SQL
Server stored procedure where the ASP.Net user does not have
permissions I receive an "An unhandled security exception has
occurred" that my Page_Error handler never sees.

Why is this and what can I do about it?
 
Back
Top