Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDisplay uncaught exceptions on siteDisplay uncaught exceptions on site
Previous
 
Next
New Post
1/10/2016 2:12 AM
 

Is there a way in DNN to display all uncaught exceptions to user on site? I know that dnn logs them into eventlog.

 
New Post
1/10/2016 5:08 AM
 
Generally this is a bad practice. Exceptions leak information about the technical implementation of a site.

Suppose a bad guy can get your site to show a message (say) 'Unable to open database X'. Now he knows that whatever bad thing he did, attempts to open a database. Now he can go hunting to see if there is a database that he *can* open.

I'd say don't do it.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
1/12/2016 10:44 AM
 
I've heard that before. My goal is not really to display technical details but to notify user that an error happens, not that he doesnt know why press on button doesnt do anything.

So on error ideal situation would be:
show error message to user: Sorry site is currently unavailable, email has been sent to admin, we will fix it as soon as possible, please come back tomorrow.

And on exception email is sent to admin/developer.

I dont wanna wrap every single function in my module in try catch block because that is unnecesary work.

I just need a function: OnUncaughException()
anbd in it i do this:
- show general error message on site
- send email to developer about error

I think in pure asp net it is possible, is it in dnn too?
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDisplay uncaught exceptions on siteDisplay uncaught exceptions on site


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out