Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Classic ASP IIS7.5 Custom 404 Handler

$
0
0

I am working on a busy site which we have migrated from to IIS7.5, 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.5, 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 should be :

User types Friendly URL : e.g. http://www.sitename.com/testarticle/ Which does not exist and files 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)

however in IIS7.5 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


Viewing all articles
Browse latest Browse all 488

Trending Articles