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  |  

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


  Ads  
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Install It!  Please HELP-All errors not redirecting to custom error page.
Previous Previous
 
Next Next
New Post 6/5/2008 8:16 AM
Online now... Brandon Haynes
622 posts
everysport.net
7th Ranked


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

For non-aspx requests, the culprit is neither DNN nor .NET -- it's IIS.  IIS contains a set of mappings, only some of which (.aspx, ashx, etc) are delivered to .NET.  If .NET does not have an opportunity to handle the request, then it cannot perform custom error handling on the request.  With default configuration, you'll get .NET 404 handling on "/ANonExistantASPXFile.aspx," but not "/ANonExistantRandomFile.xxx."  With the former, IIS asks .NET to handle the file.  With the latter, .NET never gets a chance.

You can overcome this behavior by adding additional mappings in IIS (Properties/Configuration/Mappings), or by configuring custom error handling in IIS (Properties/Custom Errors).  Both will require access to IIS.  Some (most?) hosting providers will allow you to do the latter. 

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 6/5/2008 10:13 PM
User is offline iadalang
81 posts
10th Ranked


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

Cathal, sorry for not understanding what you meant. I'm glad Brandon helped me to understand better. Now I'm clear. 

Bottom line : Ask your hosting provider to do the mappings/custom error handling. Thank you, both of you.

 
New Post 6/26/2008 12:58 AM
User is offline iadalang
81 posts
10th Ranked


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

Sorry, folks, I had to reopen this issue : I tried the URL http://www.dotnetnuke.com/tabid/795/%20/Default.aspx - notice the %20 in the URL. I got an error page :

Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /tabid/795/ /Default.aspx

I verified that this is not IIS which is returning the above page and my custom error page directives in web.config (see below) were not firing :

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

Hence I assume it is an error page returned by ASP.NET. How do I get such errors to be redirected to my custom error page?

 
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.

 


DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com
Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com
Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net

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