Solved

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

Posted on 2014-12-29
4
104 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:Montoya
  • 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:Montoya
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a starter for ETL protocol? 4 57
Where did System.Data.Objects go? 2 28
Deploying to Azure 3 29
Need to start a web service from Visual Studio 2015 Pro 2 24
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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