IIS 500-100 Custom Error - irreversible setting?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jegec
    New Member
    • Jan 2007
    • 4

    IIS 500-100 Custom Error - irreversible setting?

    Hi all!


    Brief subject:

    I have to develop an ASP-based application, and build also a specific error handling ASP. After that I had set the virtual directory Custom Error 500;100 to new ASP - and now I have no error handling at all. Even if I reset it to Default!


    Detailed description:

    First I developed the error handling code directly in 500-100.asp, making no setting to IIS (under localhost). It worked fine, both all the standard functionality of 500-100.asp and the new-written messaging that sends e-mail to me (containing asp error details).
    • After all the successful testing the 500-100.asp had been restored
    • The new 500-100_company.asp had been placed in wwwroot dir.
    • In the IIS Mamager /(virtual directory) /Properties /Custom Errors tab /500;100 was set to URL, pointing onto /500-100_company.asp


    The workflow descripted above seems to ruin totally the error handling of IIS. I am unable to reset even the original 500-100 error handling functionality (setting in manager to Default or any other way). The new error handling ASP cannot be set to work as well.

    The effect is the same both on IIS 5.1, or 6.0

    What's wrong, who could help me?
    András
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    Check ur ie settings

    Tools | Internet Options | Advanced --> Show friendly HTTP error messages

    u have to uncheck this one to show custom errors.

    :)


    Originally posted by jegec
    Hi all!


    Brief subject:

    I have to develop an ASP-based application, and build also a specific error handling ASP. After that I had set the virtual directory Custom Error 500;100 to new ASP - and now I have no error handling at all. Even if I reset it to Default!


    Detailed description:

    First I developed the error handling code directly in 500-100.asp, making no setting to IIS (under localhost). It worked fine, both all the standard functionality of 500-100.asp and the new-written messaging that sends e-mail to me (containing asp error details).
    • After all the successful testing the 500-100.asp had been restored
    • The new 500-100_company.asp had been placed in wwwroot dir.
    • In the IIS Mamager /(virtual directory) /Properties /Custom Errors tab /500;100 was set to URL, pointing onto /500-100_company.asp


    The workflow descripted above seems to ruin totally the error handling of IIS. I am unable to reset even the original 500-100 error handling functionality (setting in manager to Default or any other way). The new error handling ASP cannot be set to work as well.

    The effect is the same both on IIS 5.1, or 6.0

    What's wrong, who could help me?
    András

    Comment

    • jegec
      New Member
      • Jan 2007
      • 4

      #3
      Thanks, Radcaesar...

      'Course I will try, but...
      1. If it is so, why do not work the 'Default' (re)setting for 500-100?
      2. My browser in which I have tested is a Mozilla Firefox 2.0


      Do you have some suggestions?
      Jegec

      P.S.: As I wrote before, the effect is the same on IIS 5.x and 6.0. Alas, I've got in trouble not only on my own machine but also on two remote servers :-( and it urges me to solve the problem quite rapidly...

      Comment

      • jegec
        New Member
        • Jan 2007
        • 4

        #4
        I unchecked the "Show friendly..." option and experienced no change. Still the appearing error page looks exactly as shown below (just not in bold) both in IE and Firefox:

        Microsoft VBScript runtime error '800a01f4'

        Variable is undefined: 'blabla'

        /donpepe/RendFelv/src/DonPepe_RendFel v_Main.asp, line 5

        Comment

        • radcaesar
          Recognized Expert Contributor
          • Sep 2006
          • 759

          #5
          Be sure that u did the following,

          1. Create a file that contains your custom error message, and place it in a directory.

          2. In the Internet Information Services snap-in, select the Web site, virtual directory, directory, or file you would like to customize HTTP errors, and then click Properties.

          3. Select Custom Errors.

          4. Select the HTTP error that you would like to change, in this case 404.

          5. Click Edit Properties.

          6. Select File from the drop-down list.

          7.Enter the full path that points to your customized error message, or use Browse... to locate the file on your computer's hard disk.

          8. Click OK.

          :)

          Comment

          • jegec
            New Member
            • Jan 2007
            • 4

            #6
            Hi, rad!

            Sure I did the very things you have suggested, with only 3 points to discuss (may be, both have no relation to the core problem, but who knows...):
            1. the error to be customized is the 500;100 (Internal Server ASP) and not the 404 error;
            2. therefore its pointer will be of type URL or Default, not File as for html-s;
            3. what is the snap-in in practice (could I make these same settings elsewhere)?


            Have a nice week-end!
            András

            Comment

            Working...