Solved

IIS redirect users to a page on any error (404, 500, etc..)

Posted on 2014-12-29
4
101 Views
Last Modified: 2015-01-05
We have a redirect page that kicks in on 404 errors. Can we redirect users to the same page when other errors happen? (500 errors, 302, etc...?)

If yes... How?
0
Comment
Question by:Iammontoya
  • 2
4 Comments
 
LVL 9

Expert Comment

by:Sean
ID: 40521813
yes it can be done. Here is a link on how to do this. http://technet.microsoft.com/en-us/library/cc753103%28v=ws.10%29.aspx
0
 
LVL 19

Author Comment

by:Iammontoya
ID: 40521842
hmm but the very first paragraph of the link you sent (which I had already visited) says that you cannot create custom... on errors <list of error codes>

am I missing something?
0
 
LVL 9

Expert Comment

by:Sean
ID: 40521849
Oh okay sorry i was a little confused on your question then. Try taking a look at this. Sorry i am not a expert on this but did find a page of people discussing this. Sorry i can't be more help on this i was thinking you just wanted a custom error page for general errors.

https://www.stokia.com/support/misc/web-config-custom-httperrors.aspx
0
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 40522622
Your error handling strategy should handle HTTP and exception errors. M$ provides this example "Complete Example for Error Handlers" that shows how to handle error codes (web config changes customErrors node) and  handle exceptions at page and global level.

@Sean: The customErrors node at web config is the best place to implement these changes as shown here.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now