error page problems

  • Thread starter Thread starter gh0st54
  • Start date Start date
G

gh0st54

Hi

I'm trying to set an error page so that when a user tries to reach

http://www.domain.com/folder

they get sent to my error page

because the page requested is not managed by .net_isapi i can't use
the web.config to do so

i tried to set my 404 default page to an asp page (404.asp) with a
redirect to my notfound.aspx page but the page is not being called on
error but works when i call i directly.

any help would help

thanks
 
If I am understanding your problem correctly, then I would say you need to
go into the MMC for IIS (right click on "My Computer" and select "Manage".
Under "Services and Applications" select "Internet Information Services".
Then navigate that structure to the web-site or virtual directory you need
to change. Once there right click on it and select "Properties" then select
the "Custom Errors" tab. Scroll through the list of errors until you find
"404". Select "404" then click on the "Edit Properties" button and change
the values according like:

Message Type: URL
URL: /MyApplication/ErrorPages/MyCustom404Page.asp

Click OK., Click OK.

If you don't use URL as the message type then the ISAPI.dll assocated to the
file extension like (.asp or .aspx) will not run. It will just grab the
contents of the file and send it out to the client.

HTH.

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CustomErrors for a 404 code 2
CustomError Problem 4
HTTP 404, when accessing WebResource.axd 2
404 pages 4
404 2
Question regarding detecting 404 Not Found 2
HTTP Error 404 1
How to cause a 404 from code ? 4

Back
Top