Professional Web Applications Themes

web.config problems - ASP.NET General

I have used customErrors tag with some success. For 404 errors I think I noticed the web.config rule is only applied with the resource you are looking for ends in aspx. In order to catch all 404 errors you need to also configure IIS to use the same 404 page as specified in your web.config. This for me catches all 404s that doesn't answer everything but hopefully helps some, regards, Francis Shanahan "Philip Townsend" <com> wrote in message news:%phx.gbl... ...

  1. #1

    Default Re: web.config problems

    I have used customErrors tag with some success.
    For 404 errors I think I noticed the web.config rule is only applied with
    the resource you are looking for ends in aspx.
    In order to catch all 404 errors you need to also configure IIS to use the
    same 404 page as specified in your web.config. This for me catches all 404s

    that doesn't answer everything but hopefully helps some,
    regards,
    Francis Shanahan


    "Philip Townsend" <com> wrote in message
    news:%phx.gbl... 


    Francis Guest

  2. #2

    Default Re: web.config problems

    Phil,

    I've had a fair bit of success with custom 404 pages using the web.config
    file - especially since one of my hosting servers only allows me to do
    this - previously, I've gone into the IIS setup and set the custom error
    pages up myself, but if you can share your web.config file with the
    newsgroup, I'm sure we'll be able to help out some way.

    Cheers,
    Tone.

    --
    Tony Williams
    www.bigtone.net


    "Philip Townsend" <com> wrote in message
    news:%phx.gbl... 


    Anthony Guest

  3. #3

    Default Re: web.config problems


    here is the custom errors section of the web.config

    <customErrors mode="On" defaultRedirect="genError.htm">
    <error statusCode="404" redirect="404.htm"/>
    </customErrors>


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Philip Guest

  4. #4

    Default Re: web.config problems

    This morning I too, found that using custom errors seems to only work if
    the "file not found" is an aspx page. Has anyone had similar results?
    Is it this way by design?


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Philip Guest

Similar Threads

  1. problems with Application.config()
    By _Pez in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: July 25th, 01:16 PM
  2. Problems with XML config file
    By mate of the state in forum Coldfusion - Advanced Techniques
    Replies: 6
    Last Post: May 17th, 02:33 PM
  3. web.config problems
    By Ohad Young in forum ASP.NET Web Services
    Replies: 4
    Last Post: November 9th, 01:01 PM
  4. .dll.config problems
    By Manuel Arias in forum ASP.NET General
    Replies: 0
    Last Post: July 8th, 09:29 PM

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