Professional Web Applications Themes

customError only works for .aspx files? - ASP.NET General

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...

  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. #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" <jamesdotnetcoders.com> wrote in message
    news:#wqAieKRDHA.1072TK2MSFTNGP10.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.khome.se> wrote in message
    > news:%23x60OXKRDHA.1564TK2MSFTNGP12.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

Similar Threads

  1. How to Deploy aspx files
    By Arif Çimen in forum ASP.NET Web Services
    Replies: 1
    Last Post: March 27th, 03:44 PM
  2. Templates + aspx files
    By Holden-ar in forum Dreamweaver AppDev
    Replies: 0
    Last Post: March 2nd, 02:33 PM
  3. .aspx files don't work
    By Jim in forum ASP Components
    Replies: 5
    Last Post: November 17th, 09:25 PM
  4. .ASPX works .ASP don't
    By Ken in forum ASP
    Replies: 3
    Last Post: September 20th, 08:06 AM
  5. Changing Works files to Word files
    By Therese in forum Windows XP/2000/ME
    Replies: 2
    Last Post: July 16th, 06:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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