Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. IIS pro needed - custom errors

IIS pro needed - custom errors

Scheduled Pinned Locked Moved ASP.NET
helpwindows-adminquestion
8 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matthias s 0
    wrote on last edited by
    #1

    hi there, I've posted this already a week ago in the Web-Development board but didn't get an answer. I'm sorry for crossposting but I really need help on this one: I'm using iis 5 to run an asp application. I have custom error pages defines for the http errors 500 through 502 with an url value of /status_500.asp. The file exists for sure. i then created a testpage which does nothing more then a division by zero, hoping the error-page (there is just a response.write on it) will show up. whatever i do, i always get the standard runtime error page instead of my status_500.asp. does anyone know this problem? any help is greatly appreceated!

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    N C 2 Replies Last reply
    0
    • M matthias s 0

      hi there, I've posted this already a week ago in the Web-Development board but didn't get an answer. I'm sorry for crossposting but I really need help on this one: I'm using iis 5 to run an asp application. I have custom error pages defines for the http errors 500 through 502 with an url value of /status_500.asp. The file exists for sure. i then created a testpage which does nothing more then a division by zero, hoping the error-page (there is just a response.write on it) will show up. whatever i do, i always get the standard runtime error page instead of my status_500.asp. does anyone know this problem? any help is greatly appreceated!

      /matthias

      I love deadlines. I like the whooshing sound they make as they fly by.
      [Douglas Adams]

      C Offline
      C Offline
      Chetan Ranpariya
      wrote on last edited by
      #2

      Hi, Can you please paste the changes u have made in web.confing file?

      Thanks and Regards, Chetan Ranpariya

      N 1 Reply Last reply
      0
      • M matthias s 0

        hi there, I've posted this already a week ago in the Web-Development board but didn't get an answer. I'm sorry for crossposting but I really need help on this one: I'm using iis 5 to run an asp application. I have custom error pages defines for the http errors 500 through 502 with an url value of /status_500.asp. The file exists for sure. i then created a testpage which does nothing more then a division by zero, hoping the error-page (there is just a response.write on it) will show up. whatever i do, i always get the standard runtime error page instead of my status_500.asp. does anyone know this problem? any help is greatly appreceated!

        /matthias

        I love deadlines. I like the whooshing sound they make as they fly by.
        [Douglas Adams]

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        ASP I am not sure, but if it is ASP.NET then you can configure this type of errors in web.config file. I think IIS won't handle this.

        M 1 Reply Last reply
        0
        • C Chetan Ranpariya

          Hi, Can you please paste the changes u have made in web.confing file?

          Thanks and Regards, Chetan Ranpariya

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Chetan Ranpariya wrote:

          Can you please paste the changes u have made in web.confing file?

          I think author is using classical ASP


          Sincerly Navaneeth My Website

          C 1 Reply Last reply
          0
          • N N a v a n e e t h

            ASP I am not sure, but if it is ASP.NET then you can configure this type of errors in web.config file. I think IIS won't handle this.

            M Offline
            M Offline
            matthias s 0
            wrote on last edited by
            #5

            Firstofall, thanks for your reply. I'm sorry. I didn't mention that this is an asp application, so no web.config available (in a asp.net application running on the same server and using the web.config settings it works fine). But for this asp application I used the IIS->Virtual Directory->Properties->Custom Errors Tab to configure the custom error pages. Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config? Thanks again for your time.

            /matthias

            I love deadlines. I like the whooshing sound they make as they fly by.
            [Douglas Adams]

            N B 2 Replies Last reply
            0
            • N N a v a n e e t h

              Chetan Ranpariya wrote:

              Can you please paste the changes u have made in web.confing file?

              I think author is using classical ASP


              Sincerly Navaneeth My Website

              C Offline
              C Offline
              Chetan Ranpariya
              wrote on last edited by
              #6

              Ohh, I apologize for that. I didn't notice that. Sorry Again :(

              Thanks and Regards, Chetan Ranpariya

              1 Reply Last reply
              0
              • M matthias s 0

                Firstofall, thanks for your reply. I'm sorry. I didn't mention that this is an asp application, so no web.config available (in a asp.net application running on the same server and using the web.config settings it works fine). But for this asp application I used the IIS->Virtual Directory->Properties->Custom Errors Tab to configure the custom error pages. Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config? Thanks again for your time.

                /matthias

                I love deadlines. I like the whooshing sound they make as they fly by.
                [Douglas Adams]

                N Offline
                N Offline
                N a v a n e e t h
                wrote on last edited by
                #7

                matthias s. wrote:

                Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config?

                I think it is not like that. Upto my knowledge, IIS will generate 500 error when it doesn't have any specific information about what the error happened. But in your case you are getting divided by zero exception. So it will throw the exception details to the response. I think that is happening in your case. ? What do you say ?


                Sincerly Navaneeth My Website

                1 Reply Last reply
                0
                • M matthias s 0

                  Firstofall, thanks for your reply. I'm sorry. I didn't mention that this is an asp application, so no web.config available (in a asp.net application running on the same server and using the web.config settings it works fine). But for this asp application I used the IIS->Virtual Directory->Properties->Custom Errors Tab to configure the custom error pages. Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config? Thanks again for your time.

                  /matthias

                  I love deadlines. I like the whooshing sound they make as they fly by.
                  [Douglas Adams]

                  B Offline
                  B Offline
                  badgrs
                  wrote on last edited by
                  #8

                  matthias s. wrote:

                  Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config?

                  I don't really have any IIS admin experience, so I could be totally wrong here, but I think that could be your problem. As far as I know you have to configure the web site/virtual directory to be explicitly non-.NET otherwise the request will be passed through the ASP.NET ISAPI filter. How you do this and whether it really has any effect I'm not sure.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups