How to suppress error message details to general DNN Users

Posted by thames on Stack Overflow See other posts from Stack Overflow or by thames
Published on 2010-06-15T22:12:35Z Indexed on 2010/06/16 18:52 UTC
Read the original article Hit count: 308

I have a DNN site (05.02.03) in test and nearing release into production and I would like to suppress the details of error messages (i.e. Null Reference Exception, and others) to general users (admins can still see the details). Debug is off in the web.config.

By suppressing, I mean the only error message I want to display to the general user (all users) is something like "An Exception has occured". I don't want the details of that exception to be displayed to the general user. I still want it logged in greater detail in the Event Viewer.

How would I go about doing this?

Update: I have "Use Custom Error Messages" checked. Which shows a error message like:

A critical error has occurred.[vbCrLf] Object reference not set to an instance of an object.

I want just the "A critical error has occured." error message to be displayed to general users.

I don't want the "Object referece not set to an instance of an object." to be displayed to general users

© Stack Overflow or respective owner

Related posts about error-handling

Related posts about error-message