Generic Error Page
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies examples of good error messages of this site About Us Learn more about Stack Overflow the company Business
Generic Error Message
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Friendly Error Messages Examples
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:
Error Message Examples Text
Sign up How do I make a “generic error” page in my ASP.NET application so that it handles errors triggered when serving that page itself? up vote 4 down vote favorite 2 In my ASP.NET MVC application I want to have a generic error page that is showed together with returning HTTP 500. Something like this page on Stack Overflow. Of course I'd generic error meaning like to reuse as much code as possible so that the page is styled the same way as other pages in my application, so I want to have an ASP.NET page reusing the master pages, not a plain HTML file. However if I do so I have a page that contains some server-side executable code for creating actual HTML served to the client. In case of Stack Overflow generic error page it's the code checking whether the user is registered, retrieving his rep, etc, and inserting elements for that into HTML. That code can fail and if that happens the page isn't properly constructed and an exception is thrown in the server. How do I handle that situation (error when building HTML for the error page) gracefully? What's the typical approach? asp.net .net iis error-handling share|improve this question edited May 25 '12 at 9:12 asked May 25 '12 at 8:54 sharptooth 109k50317709 asp.net/web-forms/tutorials/deployment/… –Jason Evans May 25 '12 at 9:14 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote I like to start by categorize the possible error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and good error message text policies of this site About Us Learn more about Stack Overflow the standard error message text examples company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags 500 error message examples Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only http://stackoverflow.com/questions/10751363/how-do-i-make-a-generic-error-page-in-my-asp-net-application-so-that-it-handle takes a minute: Sign up How to add generic error page for all other run-time errors? up vote 2 down vote favorite I am trying to tweak with
see content Grocery Delivery Our Store Recipes & error message Meals Pharmacy & Nutrition Weekly Ad Problems viewing this site? Get the most out of your website experience.Upgrade to the latest version of the browsers below. Internet Explorer 10 or higher error message examples Mozilla Firefox latest version Google Chrome latest version Quick Links Home Find a Store Weekly Specials Coupons Coupon Policy Update Club Card Local Store Directory Services & Programs Gas Reward Points Pharmacy Deli SimpleNutrition Gift Cards Money Services Company Info About Us Our Brands Contact Us Careers Sustainability Foundation Employees Investors Suppliers Real Estate Position Statements Anti-Human Trafficking Disclosure Product Recalls About This Site Help/FAQ Privacy Policy Terms of Use AdChoices Check out our Apps Sign-up for email savings! Go © 2008- Safeway Inc. All rights reserved.
→ Expand Navigation By:Carrie CousinsOn:17 Nov 2014Topics:AccessibilitySocial: What Makes a Great 404 Error Page?No one wants to think website visitors are spending time on error pages, but it happens. The 404 error page is one place that these interactions happen rather frequently. Design it in a way that speaks to users rather than encouraging them to leave your site.More memorable and less frustrating 404 error pages are the most successful. They can also be the most fun to design. So what can you do to create the best 404 page for your site? Here are a few tips, tricks and gallery of great examples.What is a 404 Error Page?Website visitors land on a 404 error page when they try to visit a page that does not exist. This can be because the page has been removed, the server or internet connection is down, users have clicked a broken link or typed a URL wrong.Typically 404 error pages result in one of the following messages:404 Not FoundHTTP 404 Not Found404 ErrorThe page cannot be foundThe requested URL was not found on this serverWhen it comes to the overall design of 404 pages there are two options – a generic 404 page or a custom 404 page. Generic pages just spit out the messages above with no regard to the design. Custom pages are those that you design and create options for. You must have access to the host server to do this. (That is not something we will go into here, but you can learn more about it from A List Apart.)Good custom 404 error pages tell users what to do if they get misdirected in some way. Pages should include usable information that will help a visitor stay on your site and find the information they are looking for. (Hopefully they will have a nifty design as well.)Basic Must-Have InformationTo be most effective a 404 error page should be somewhat sim