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...DNN Platform (o...DNN Platform (o...500 Server errors not being handled by ErrorPage.aspx (plain text message - not even ASP.NET YSOD)500 Server errors not being handled by ErrorPage.aspx (plain text message - not even ASP.NET YSOD)
Previous
 
Next
New Post
1/31/2011 7:17 AM
 
(DNN 4.9.5 on IIS 6.0 & ASP.NET 3.5)

This might not be a DNN configuration issue, but if anyone can give me some pointers I would be grateful.

I have set up web.config to send errors to ErrorPage.aspx, as follows:

< customErrors mode="RemoteOnly" defaultRedirect="/ErrorPage.aspx">< /customErrors>

For some errors (e.g. SQL Server not available) the request is being redirected to ErrorPage.aspx. However there are certain errors where this is not happening:

  • The URL is not redirected (remains on requested page)
  • A plain text error appears, like this:

500 Server Error
An error occured during processing : if possible, check the event log of the server
Administrators : Obtain more information by changing to debug mode and switching custom errors off in the configuration.


This is not the ASP.NET "yellow screen" - it is just a few lines of unformatted text. Below the above lines the actual error is exposed, which is not good from a security point of view. In my case it is a "The process cannot access the file ..... because it is in use by another process" error. This is due to a mistake I made in coding an HTTP module, which I have fixed, but I am concerned that the error is not being handled in a secure and user friendly way.

Does anyone have an explanation and/or workaround?

 
New Post
1/31/2011 11:55 AM
 
DOH!
I found it .... that message was output by the module itself when an exception was caught ! 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...500 Server errors not being handled by ErrorPage.aspx (plain text message - not even ASP.NET YSOD)500 Server errors not being handled by ErrorPage.aspx (plain text message - not even ASP.NET YSOD)


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