An unhandled security exception has occurred.

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?
 
J

Jay Pondy

Removing the assignment of the custom error page in web.config solved
this problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top