Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6834111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:04:16+00:00 2026-05-26T23:04:16+00:00

I have a application (folder with an app pool) running on iis 6 where

  • 0

I have a application (folder with an app pool) running on iis 6 where im trying to setup a custom error page. I in the web config I have a element for the custom error but it never shows up. If I go into IIS and look at the properties of the app I can set a custom error to point to oops.html. It seems that IIS is not using the setting in my web.config for handling the errors.

Here is what I have
in web.config

<system.web>
    ...
    <customErrors mode="On" defaultRedirect="/oops.html" redirectMode="ResponseRewrite" />
    ...
</system.web>
<system.webServer>
    ...
    <httpErrors existingResponse="PassThrough" />
    ...
<system.webServer>

Address to the app is like this:
http://www.mysite.com/myappfolder/

the web config is in:
http://www.mysite.com/myappfolder/

and oops.html is in:
http://www.mysite.com/myappfolder/oops.html

if it try to go to:
http://www.mysite.com/myappfolder/NothingReal
a 404 will be thrown and only when I have configured IIS to redirect to oops.html will I see the page.

What are the rules for specifying the target of customerrors? Should I remove the “/” what about using ~/myappfolder/oops.html? How do I bypass IIS 6 error handling and have all the errors redirect to my page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:04:17+00:00Added an answer on May 26, 2026 at 11:04 pm

    So this was a combination of issues. First was that there are two levels of error handling going on on the server.

    The first level sits in IIS. When IIS comes across an error it will use its error pages to relay or obscure the issue.

    The second level is in the ASP runtime. With there is an error in the page the script can then delegate to the “oops” page given the web config is configured to do that.

    If asp dose not redirect to an “oops” page or the location of that page in incorrect then IIS handles the error. In the case of not redirecting the 500 level error would be thrown. In the case of a wrong location of the “oops” page then it would throw a 404.

    My issue was in the way this was being handled and that IIS and my web config were pointing to the same page, making debugging slightly more challenging.

    in the end I worked out my issues the first of which being that the path is relative to the webconfig that is handling the redirect and that ~/ was being used incorrectly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Visual Studio Setup project which has a Application Folder DefaultLocation set
I have a folder with custom classes in a ZF 1.10 application. The folder
I have a file called config.yml in my /config folder of my rails application.
I have a network folder that is mapped to my iis app as a
I would like to have App_LocalResources folder outside web application folder, so that I
i have my c# application in c:\program files\app\ folder i am using sqllite database
I have an application where each subscriber gets their own 'app' folder within their
I've got an ASP website running on IIS 7.0. The app pool is classic,
I have an hybrid application, it's basically a website running from the application folder
I have an application that writes to a folder on the C:\ drive. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.