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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Please HELP-All errors not redirecting to custom error page.Please HELP-All errors not redirecting to custom error page.
Previous
 
Next
New Post
6/4/2008 9:30 AM
 

I had updated the customErrors node in web.config as below :
<customErrors defaultRedirect="~/ErrorPage.aspx" mode="RemoteOnly" />
but the custom error page doesn't seem to show up on every error. Instead, the ASP.NET error pages bubble up. How to get all errors to redirect to my custom error page?

 
New Post
6/4/2008 2:17 PM
 

remoteonly shows the default asp.net errors for requests to localhost - if you want your custom error page for both local and remote requests you need to use On

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/5/2008 12:54 AM
 

Sorry, I changed it to :

    <customErrors defaultRedirect="~/ErrorPage.aspx" mode="On">
                <error statusCode="403" redirect="~/ErrorPage.aspx" />
                <error statusCode="404" redirect="~/ErrorPage.aspx" />
    </customErrors>

But it still didn't work. Even the 404 directive doesn't seem to work. Is it an issue of IIS not handing over the processing to ASP.NET? Or did I miss some other DNN/web.config setting?

 
New Post
6/5/2008 8:45 AM
 

there is no specific dnn setting. Basically whilst the portal is running if there are any exceptions we try to catch them and route them to the dotnetnuke event handler. If the exception is not caught it bubbles up i.e. an exception in a method bubbles up to the control then to the page then to the application then to iis -it will stop bubbling up if something processes it.

customErrors are simply a way of capturing the error at the application level - as they are a .net setting they only process .net requests i.e. www.mysite.com/doesnotexist.aspx will be processed, but www.mysite.com/alsodoesnotexist.asp will not (it's an asp page so doesn't pass through a .net handler)

You only need to map settings in IIS to pages if (a) you want to handle non-.net items or (b) you don't want to have a customErrors setting.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/5/2008 9:59 AM
 

No, no this has nothing to do with ASP, we're talking DNN on .NET aren't we? I didn't do any IIS mappings at all. And even if I wanted to, what if I don't have access to IIS?

From what you're saying, it looks like all types of exceptions cannot be caught, after all, but I'm not sure whether its because of DNN or .NET.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Please HELP-All errors not redirecting to custom error page.Please HELP-All errors not redirecting to custom error page.


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