customError only works for .aspx files?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default customError only works for .aspx files?

    Hi

    I've designed my own 404 not found error page. And it works fine if I type
    in this URL:

    [url]www.mydomain.com/doesntexist.aspx[/url]

    However, if I type in:

    [url]www.mydomain.com/doesntexist.html[/url]

    then I get the usual standard error message. How can I overcome this?

    /john


    John Knoop Guest

  2. Similar Questions and Discussions

    1. put aspx files online
      Can you post the detailed err. msg? -- G. "Marichael Davy" wrote:
    2. How to Deploy aspx files
      Hi everybody, I'm a new be for ASP .NET. I made a simple project (C# coded web project) and I want to deploy it to my web site. My project...
    3. .aspx files don't work
      I have been having some trouble with my web server running under Windows 2000 Server, so I removed IIS and reinstalled it. Now, I noticed that my...
    4. .ASPX works .ASP don't
      Any ideas anyone, using IIS 5.1 .ASP web pages do not work I get error 500, but .ASPX web pages work fine? I made a website using MS FrontPage...
    5. Changing Works files to Word files
      My old computer only had Microsoft Works, so all my files were saved in Works. My new computer has Word and I want to pull up and transfer old...
  3. #2

    Default Re: customError only works for .aspx files?

    Hi

    Unfortunately I down't haev access to the IIS mmc console, since my website
    is located on a web hotel to which I connect via FTP. Is there no other way?
    Maybe something I can do in web.config?

    /john

    "James J. Foster" <james@dotnetcoders.com> wrote in message
    news:#wqAieKRDHA.1072@TK2MSFTNGP10.phx.gbl...
    > What's happening in your case is that the 404 error handler is not being
    > handled by ASP.NET, because the file extension (.html) is handled by IIS.
    In
    > order to cover your bases for both .NET and non-.NET extensions, you
    should
    > declare a handler at the IIS level via the IIS mmc console (Right-click
    > website, select Properties, then the Custom Errors tab).
    >
    > --
    > James J. Foster, DotNetCoders
    > [url]http://www.dotnetcoders.com[/url]
    >
    >
    >
    > "John Knoop" <john.k@home.se> wrote in message
    > news:%23x60OXKRDHA.1564@TK2MSFTNGP12.phx.gbl...
    > > Hi
    > >
    > > I've designed my own 404 not found error page. And it works fine if I
    type
    > > in this URL:
    > >
    > > [url]www.mydomain.com/doesntexist.aspx[/url]
    > >
    > > However, if I type in:
    > >
    > > [url]www.mydomain.com/doesntexist.html[/url]
    > >
    > > then I get the usual standard error message. How can I overcome this?
    > >
    > > /john
    > >
    > >
    >
    >

    John Knoop Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139