Solved

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

Posted on 2014-12-29
4
109 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 36

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

632 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