Classic Asp 404 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 of this site About Us Learn more about Stack Overflow the company Business classic asp custom error page Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Classic Asp On Error Resume Next Example
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like
Classic Asp On Error Goto
you, helping each other. Join them; it only takes a minute: Sign up Classic ASP IIS7 Custom 404 Handler up vote 1 down vote favorite At witts end with this problem. I am working on a busy
Classic Asp On Error Goto 0
site which we have migrated from IIS6 to IIS7, which uses a custom 404.asp handler to process SEO friendly URLS and return the correct content from included asp scripts. We have managed to get the 404 method to work on IIS7, but if there is a error in the code somewhere, we have set iis to run 500.asp which is designed to log the error and returns a useful message to the user. So the flow 404 error page template should be : User types Friendly URL : e.g. http://www.sitename.com/testarticle/ Which does not exist and fires 404.asp 404 looks up "testarticle" in our database and returns the correct content. That all works.. If error Should call 500.asp - Logs Error in our Log (Works) - Returns Msg to the screen (Not working - Just Get Blank Page) This worked in IIS6, however in IIS7 the 500.asp logs the error in our log, but absolutely nothing is written out to the screen - We just get a blank screen. Very Frustrating. We have tried changing what feels like every setting in IIS, and web.config but we can't get this to work. Any help much appreciated.. Cheers iis iis-7 asp-classic share|improve this question asked Apr 7 '14 at 14:31 user3507158 61 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote I did a similar migration a little while ago and this is the web.config settings I ended up with (well just the relevant parts):
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn google 404 error page more about Stack Overflow the company Business Learn more about hiring developers or posting 404 error page not found ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community funny 404 error page Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 404 Custom is blank with asp extension up vote 2 http://stackoverflow.com/questions/22915389/classic-asp-iis7-custom-404-handler down vote favorite My 404 Custom setup shows up as a blank page if it has an asp extension. If I change the extension of the custom error page to .html, the custom error page shows correctly. this is my web.config file here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://stackoverflow.com/questions/20466056/classic-asp-custom-error-pages site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags 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 takes a minute: Sign up Classic error page ASP - Custom Error Pages up vote 1 down vote favorite 1 I have a clean install of Windows Server 2008 with IIS7. There I installed "Classic ASP" and the changed the debugging option "Send Errors To Browser" to True. 1. I created a directory with 2 files: -- C:\inetpub\wwwroot\stadtbibliothek - index.asp -> <% Response.Write "Hello World" %> - 500-100.asp -> <% Response.Write "Error" 404 error page %> I konverted the directory to an application and assigned a application pool i created (.net version: no managed code, pipelinecode: classic). Then I tested the page from an remote client (http://svr-name.domain/stadtbibliothek/) and "Hello World" showed up. 2. I added an error to the index.asp file and a web.config file to the "stadtbibliothek" folder (there is none in the root):