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 8967177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:11:18+00:00 2026-06-15T17:11:18+00:00

In windows 7 I’m trying to set up custom error pages. One for 404,

  • 0

In windows 7 I’m trying to set up custom error pages. One for 404, one for 500, and one catch all for any other error (client side or server side) that a user may encounter when something times out, or there is a malfunction when asp does its compiling.

404.htm
500.htm
error.htm

Just really simple html pages that say error and nothing technical like the defaults. This post and this post seem to be talking about crafting the error pages in ASP, not just taking an html file and setting it as a custom error page.

In IIS I have gone to the error page selection tool that is not meant for ASP

IIS Error menu

And entering this information into the Edit error pages settings dialogue

Full address I’ve entered: WebvView\webview_error_pages\error.htm (by selecting after I’ve hit the elipses button to the side to browse. (I’ve shortened all of these addresses for this post).

enter image description here

The custom default address works. But when I try to make an error page for 404 like this:

dialogue for 404

404 appears on list

and try to go to a page which doesn’t exist, I get this simple error message:

The page cannot be displayed because an internal server error has
occurred.

Not mine. And not the default that was working before I set up the custom 404.

What am I doing wrong?

Thanks!

EDIT

also, I’ve just changed some part of the ASP and gotten a runtime error and not my custom error. Is there any way to stop users from seeing these frighteningly technical pages??

EDIT
this is the xml code for the other status menus:

    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
        <customErrors defaultRedirect="webview_error_pages/error.htm" mode="On">
        </customErrors>
  </system.web>
    <system.webServer>
        <httpErrors errorMode="Custom">
            <remove statusCode="502" subStatusCode="-1" />
            <remove statusCode="501" subStatusCode="-1" />
            <remove statusCode="500" subStatusCode="-1" />
            <remove statusCode="412" subStatusCode="-1" />
            <remove statusCode="406" subStatusCode="-1" />
            <remove statusCode="405" subStatusCode="-1" />
            <remove statusCode="401" subStatusCode="-1" />
            <remove statusCode="403" subStatusCode="-1" />
            <remove statusCode="404" subStatusCode="-1" />
        </httpErrors>
    </system.webServer>

Thanks again!

  • 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-06-15T17:11:18+00:00Added an answer on June 15, 2026 at 5:11 pm

    Is there a specific reason why you’re not doing this in your web.config? This will help if you move your project to a different server, you then won’t have to worry about manually configuring IIS. Also, it’s a bit easier to configure it in web.config IMO.

    In the customErrors node under system.web, make sure you have

            <customErrors mode="On" defaultRedirect="~/Error/" >
               <error statusCode="404" redirect="~/404Redirect/"/>
            </customErrors>
    

    Obviously you can substitute whatever redirect page you’d like.

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

Sidebar

Related Questions

Windows command line, I want to search a file for all rows starting with:
Windows form application. C# 4.0. Basically I have two datagridviews dgv1 and dgv2. One
Windows API has a set of function for heap creation and handling: HeapCreate, HeapAlloc,
Windows XP Embedded is missing the NULL or NUL device. For one thing, Visual
Windows APIs uses GetLastError() mechanism to retrieve information about an error or failure. I
Windows XP with Service Pack 3 x86 retail symbols, all languages (File size: 209
Windows can't seem to find any of these types, and I'm completely at a
Windows still use DLLs and Mac programs seem to not use DLL at all.
Windows phone user can set timezone or set automatically option on settings->datetime section. I
Windows Resource Monitor displays (among other things) which files on disk are currently accessed

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.