How can I use an own asp page as 404 error page on a Windows 7 pro IIS 7.5 local installation
Posted
by
Edelcom
on Super User
See other posts from Super User
or by Edelcom
Published on 2011-06-20T14:45:33Z
Indexed on
2011/06/25
8:25 UTC
Read the original article
Hit count: 243
redirection
|iis-7.5
Running Windows 7 Pro Running local IIS 7.5 ( for web development purposes )
Edited hosts file to be able to use http://www.sitestepper.dev
Site build in subfolder of the inetpub/wwwroot/staplijst
Site can be viewed using http://www.sitestepper.dev/staplijst/whatever-page.htm
I have an http://www.sitestepper.dev/p.asp
page I would like to call when an unknown page is requested. This technique works fine on the deployed version of this web site ( deployed on an Windows 2003 server running IIS 7 - not sure about the 7 but it is the version deployed with Windows 2003 server ).
I tried ( in the Edit Custom Error Dialog ) :
- Execute a URL on this site: with value /staplijst/p.asp
and
- Respond with a 302 redirect: with value http://www.sitestepper.dev/staplijst/p.asp
I tried this in the properties of the 'Default Web Site' , and I tried this at the staplijst
level.
- Even tried it with values without the
/staplijst
.
I restarted the default web site after each change. And even stopped/started the Web service.
But nothing seems to work, I keep getting the 'Server Error In Application "DEFAULT WEB SITE"' , HTTP Error 404.0 error.
What am I missing here - probably something obvious, but I don't see it ?
Thanks in advance
© Super User or respective owner