Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Install It!  Please HELP-All errors not redirecting to custom error page.
Previous Previous
 
Next Next
New Post 6/4/2008 6:30 AM
User is offline iadalang
81 posts
10th Ranked


Please HELP-All errors not redirecting to custom error page. 

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 11:17 AM
User is offline cathal connolly
2638 posts
www.cathal.co.uk
5th Ranked










Re: Please HELP-All errors not redirecting to custom error page. 

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

 
New Post 6/4/2008 9:54 PM
User is offline iadalang
81 posts
10th Ranked


Re: Please HELP-All errors not redirecting to custom error page. 

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 5:45 AM
User is offline cathal connolly
2638 posts
www.cathal.co.uk
5th Ranked










Re: Please HELP-All errors not redirecting to custom error page. 

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

 
New Post 6/5/2008 6:59 AM
User is offline iadalang
81 posts
10th Ranked


Re: Please HELP-All errors not redirecting to custom error page. 

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 Previous
 
Next Next
  Forum  General DotNetN...  Install It!  Please HELP-All errors not redirecting to custom error page.
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com
Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP