customErrors mode="off"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nicholas

    customErrors mode="off"

    Although in my web.config I have <customErrors mode="off" /> I still get no
    detailed errors.
    How comes ?

    THX

    This is what I get:


    Server Error in '/mywebfolder'App lication.
    ----------------------------------------------------------------------------
    ----

    Runtime Error
    Description: An application error occurred on the server. The current custom
    error settings for this application prevent the details of the application
    error from being viewed remotely (for security reasons). It could, however,
    be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable
    on remote machines, please create a <customErrors > tag within a "web.config "
    configuration file located in the root directory of the current web
    application. This <customErrors > tag should then have its "mode" attribute
    set to "Off".

    <!-- Web.Config Configuration File -->

    <configuratio n>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>

    Notes: The current error page you are seeing can be replaced by a custom
    error page by modifying the "defaultRedirec t" attribute of the application's
    <customErrors > configuration tag to point to a custom error page URL.

    <!-- Web.Config Configuration File -->

    <configuratio n>
    <system.web>
    <customErrors mode="RemoteOnl y" defaultRedirect ="mycustompage. htm"/>
    </system.web>
    </configuration>


  • Leszek Taratuta

    #2
    Re: customErrors mode=&quot;off& quot;

    1. Are you using multiple web.config files? Check all of them.
    2. What about machine.config?

    Leszek Taratuta

    "nicholas" <murmurait1@hot mail.com> wrote in message
    news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=blue]
    > Although in my web.config I have <customErrors mode="off" /> I still get[/color]
    no[color=blue]
    > detailed errors.
    > How comes ?
    >
    > THX
    >
    > This is what I get:
    >
    >
    > Server Error in '/mywebfolder'App lication.
    > --------------------------------------------------------------------------[/color]
    --[color=blue]
    > ----
    >
    > Runtime Error
    > Description: An application error occurred on the server. The current[/color]
    custom[color=blue]
    > error settings for this application prevent the details of the application
    > error from being viewed remotely (for security reasons). It could,[/color]
    however,[color=blue]
    > be viewed by browsers running on the local server machine.
    >
    > Details: To enable the details of this specific error message to be[/color]
    viewable[color=blue]
    > on remote machines, please create a <customErrors > tag within a[/color]
    "web.config "[color=blue]
    > configuration file located in the root directory of the current web
    > application. This <customErrors > tag should then have its "mode" attribute
    > set to "Off".
    >
    > <!-- Web.Config Configuration File -->
    >
    > <configuratio n>
    > <system.web>
    > <customErrors mode="Off"/>
    > </system.web>
    > </configuration>
    >
    > Notes: The current error page you are seeing can be replaced by a custom
    > error page by modifying the "defaultRedirec t" attribute of the[/color]
    application's[color=blue]
    > <customErrors > configuration tag to point to a custom error page URL.
    >
    > <!-- Web.Config Configuration File -->
    >
    > <configuratio n>
    > <system.web>
    > <customErrors mode="RemoteOnl y"[/color]
    defaultRedirect ="mycustompage. htm"/>[color=blue]
    > </system.web>
    > </configuration>
    >
    >[/color]


    Comment

    • nicholas

      #3
      Re: customErrors mode=&quot;off& quot;

      1) All web.config have customerrors = off
      2) I'm not using a machine.config, what is this for?

      THX for your reply !
      Nic.

      "Leszek Taratuta" <ads@taratuta.n et> wrote in message
      news:%23wHea$k$ EHA.1404@TK2MSF TNGP11.phx.gbl. ..[color=blue]
      > 1. Are you using multiple web.config files? Check all of them.
      > 2. What about machine.config?
      >
      > Leszek Taratuta
      >
      > "nicholas" <murmurait1@hot mail.com> wrote in message
      > news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=green]
      > > Although in my web.config I have <customErrors mode="off" /> I still get[/color]
      > no[color=green]
      > > detailed errors.
      > > How comes ?
      > >
      > > THX
      > >
      > > This is what I get:
      > >
      > >
      > > Server Error in '/mywebfolder'App lication.[/color]
      >
      > --------------------------------------------------------------------------
      > --[color=green]
      > > ----
      > >
      > > Runtime Error
      > > Description: An application error occurred on the server. The current[/color]
      > custom[color=green]
      > > error settings for this application prevent the details of the[/color][/color]
      application[color=blue][color=green]
      > > error from being viewed remotely (for security reasons). It could,[/color]
      > however,[color=green]
      > > be viewed by browsers running on the local server machine.
      > >
      > > Details: To enable the details of this specific error message to be[/color]
      > viewable[color=green]
      > > on remote machines, please create a <customErrors > tag within a[/color]
      > "web.config "[color=green]
      > > configuration file located in the root directory of the current web
      > > application. This <customErrors > tag should then have its "mode"[/color][/color]
      attribute[color=blue][color=green]
      > > set to "Off".
      > >
      > > <!-- Web.Config Configuration File -->
      > >
      > > <configuratio n>
      > > <system.web>
      > > <customErrors mode="Off"/>
      > > </system.web>
      > > </configuration>
      > >
      > > Notes: The current error page you are seeing can be replaced by a custom
      > > error page by modifying the "defaultRedirec t" attribute of the[/color]
      > application's[color=green]
      > > <customErrors > configuration tag to point to a custom error page URL.
      > >
      > > <!-- Web.Config Configuration File -->
      > >
      > > <configuratio n>
      > > <system.web>
      > > <customErrors mode="RemoteOnl y"[/color]
      > defaultRedirect ="mycustompage. htm"/>[color=green]
      > > </system.web>
      > > </configuration>
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Bob Lehmann

        #4
        Re: customErrors mode=&quot;off& quot;

        I believe it's case-sensitive - "Off", not "off".

        Bob Lehmann

        "nicholas" <murmurait1@hot mail.com> wrote in message
        news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=blue]
        > Although in my web.config I have <customErrors mode="off" /> I still get[/color]
        no[color=blue]
        > detailed errors.
        > How comes ?
        >
        > THX
        >
        > This is what I get:
        >
        >
        > Server Error in '/mywebfolder'App lication.
        > --------------------------------------------------------------------------[/color]
        --[color=blue]
        > ----
        >
        > Runtime Error
        > Description: An application error occurred on the server. The current[/color]
        custom[color=blue]
        > error settings for this application prevent the details of the application
        > error from being viewed remotely (for security reasons). It could,[/color]
        however,[color=blue]
        > be viewed by browsers running on the local server machine.
        >
        > Details: To enable the details of this specific error message to be[/color]
        viewable[color=blue]
        > on remote machines, please create a <customErrors > tag within a[/color]
        "web.config "[color=blue]
        > configuration file located in the root directory of the current web
        > application. This <customErrors > tag should then have its "mode" attribute
        > set to "Off".
        >
        > <!-- Web.Config Configuration File -->
        >
        > <configuratio n>
        > <system.web>
        > <customErrors mode="Off"/>
        > </system.web>
        > </configuration>
        >
        > Notes: The current error page you are seeing can be replaced by a custom
        > error page by modifying the "defaultRedirec t" attribute of the[/color]
        application's[color=blue]
        > <customErrors > configuration tag to point to a custom error page URL.
        >
        > <!-- Web.Config Configuration File -->
        >
        > <configuratio n>
        > <system.web>
        > <customErrors mode="RemoteOnl y"[/color]
        defaultRedirect ="mycustompage. htm"/>[color=blue]
        > </system.web>
        > </configuration>
        >
        >[/color]


        Comment

        • Leszek Taratuta

          #5
          Re: customErrors mode=&quot;off& quot;

          The machine.config file provides settings for the entire machine, not only
          for a single Web Application.
          It resides in the .NET directory. On my machine it is:
          C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ CONFIG
          Try searching your hard-drive for machine.config.
          This file contains <customErrors mode="RemoteOnl y"/> by default.
          Anyway this file (machine.config ) is taken into account only when you do not
          have web.config, so it is unlikely source of your problem.

          Also check web.config that provides settings for your application. Maybe you
          have multiple <customErrors > nodes. They might override their settings.

          Leszek

          "nicholas" <murmurait1@hot mail.com> wrote in message
          news:ONmSYCl$EH A.1908@TK2MSFTN GP15.phx.gbl...[color=blue]
          > 1) All web.config have customerrors = off
          > 2) I'm not using a machine.config, what is this for?
          >
          > THX for your reply !
          > Nic.
          >
          > "Leszek Taratuta" <ads@taratuta.n et> wrote in message
          > news:%23wHea$k$ EHA.1404@TK2MSF TNGP11.phx.gbl. ..[color=green]
          > > 1. Are you using multiple web.config files? Check all of them.
          > > 2. What about machine.config?
          > >
          > > Leszek Taratuta
          > >
          > > "nicholas" <murmurait1@hot mail.com> wrote in message
          > > news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=darkred]
          > > > Although in my web.config I have <customErrors mode="off" /> I still[/color][/color][/color]
          get[color=blue][color=green]
          > > no[color=darkred]
          > > > detailed errors.
          > > > How comes ?
          > > >
          > > > THX
          > > >
          > > > This is what I get:
          > > >
          > > >
          > > > Server Error in '/mywebfolder'App lication.[/color]
          > >[/color]
          >
          > --------------------------------------------------------------------------[color=green]
          > > --[color=darkred]
          > > > ----
          > > >
          > > > Runtime Error
          > > > Description: An application error occurred on the server. The current[/color]
          > > custom[color=darkred]
          > > > error settings for this application prevent the details of the[/color][/color]
          > application[color=green][color=darkred]
          > > > error from being viewed remotely (for security reasons). It could,[/color]
          > > however,[color=darkred]
          > > > be viewed by browsers running on the local server machine.
          > > >
          > > > Details: To enable the details of this specific error message to be[/color]
          > > viewable[color=darkred]
          > > > on remote machines, please create a <customErrors > tag within a[/color]
          > > "web.config "[color=darkred]
          > > > configuration file located in the root directory of the current web
          > > > application. This <customErrors > tag should then have its "mode"[/color][/color]
          > attribute[color=green][color=darkred]
          > > > set to "Off".
          > > >
          > > > <!-- Web.Config Configuration File -->
          > > >
          > > > <configuratio n>
          > > > <system.web>
          > > > <customErrors mode="Off"/>
          > > > </system.web>
          > > > </configuration>
          > > >
          > > > Notes: The current error page you are seeing can be replaced by a[/color][/color][/color]
          custom[color=blue][color=green][color=darkred]
          > > > error page by modifying the "defaultRedirec t" attribute of the[/color]
          > > application's[color=darkred]
          > > > <customErrors > configuration tag to point to a custom error page URL.
          > > >
          > > > <!-- Web.Config Configuration File -->
          > > >
          > > > <configuratio n>
          > > > <system.web>
          > > > <customErrors mode="RemoteOnl y"[/color]
          > > defaultRedirect ="mycustompage. htm"/>[color=darkred]
          > > > </system.web>
          > > > </configuration>
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • nicholas

            #6
            Re: customErrors mode=&quot;off& quot;

            in my web.config it is OK: Off

            THX anyway

            "Bob Lehmann" <none> wrote in message
            news:utzr2Kl$EH A.2580@TK2MSFTN GP15.phx.gbl...[color=blue]
            > I believe it's case-sensitive - "Off", not "off".
            >
            > Bob Lehmann
            >
            > "nicholas" <murmurait1@hot mail.com> wrote in message
            > news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=green]
            > > Although in my web.config I have <customErrors mode="off" /> I still get[/color]
            > no[color=green]
            > > detailed errors.
            > > How comes ?
            > >
            > > THX
            > >
            > > This is what I get:
            > >
            > >
            > > Server Error in '/mywebfolder'App lication.[/color]
            >
            > --------------------------------------------------------------------------
            > --[color=green]
            > > ----
            > >
            > > Runtime Error
            > > Description: An application error occurred on the server. The current[/color]
            > custom[color=green]
            > > error settings for this application prevent the details of the[/color][/color]
            application[color=blue][color=green]
            > > error from being viewed remotely (for security reasons). It could,[/color]
            > however,[color=green]
            > > be viewed by browsers running on the local server machine.
            > >
            > > Details: To enable the details of this specific error message to be[/color]
            > viewable[color=green]
            > > on remote machines, please create a <customErrors > tag within a[/color]
            > "web.config "[color=green]
            > > configuration file located in the root directory of the current web
            > > application. This <customErrors > tag should then have its "mode"[/color][/color]
            attribute[color=blue][color=green]
            > > set to "Off".
            > >
            > > <!-- Web.Config Configuration File -->
            > >
            > > <configuratio n>
            > > <system.web>
            > > <customErrors mode="Off"/>
            > > </system.web>
            > > </configuration>
            > >
            > > Notes: The current error page you are seeing can be replaced by a custom
            > > error page by modifying the "defaultRedirec t" attribute of the[/color]
            > application's[color=green]
            > > <customErrors > configuration tag to point to a custom error page URL.
            > >
            > > <!-- Web.Config Configuration File -->
            > >
            > > <configuratio n>
            > > <system.web>
            > > <customErrors mode="RemoteOnl y"[/color]
            > defaultRedirect ="mycustompage. htm"/>[color=green]
            > > </system.web>
            > > </configuration>
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Juan T. Llibre

              #7
              Re: customErrors mode=&quot;off& quot;

              Are you sure that the web.config is in a directory
              marked as an Application or a Virtual Directory in IIS ?

              If it is not, the web.config in the root directory,
              or the settings in machine.config, will decide whether
              custom errors will be displayed.

              The default setting for custom errors in asp.net 1.1 is :
              <customErrors mode="RemoteOnl y" />

              The possible settings are :

              On : Always display custom errors

              Off : Always display *ASP.NET* error pages
              ( Notice: this does *not* mean that no error messages
              will be displayed. It means that ASP.NET error messages
              will be displayed.

              RemoteOnly : Display custom errors to remote
              clients and ASP.NET errors to localhost

              It could very well be ( in fact it probably is )
              that you're seeing an ASP.NET error message,
              and not a *custom* error page being displayed.

              btw, in IE, do you have "Show friendly HTTP error messages"
              selected in "Tools", "Internet Options", "Advanced" ?



              Juan T. Llibre
              ASP.NET MVP
              ===========
              "nicholas" <murmurait1@hot mail.com> wrote in message
              news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=blue]
              > Although in my web.config I have <customErrors mode="off" /> I still get
              > no
              > detailed errors.
              > How comes ?
              >
              > THX
              >
              > This is what I get:
              >
              >
              > Server Error in '/mywebfolder'App lication.
              > ----------------------------------------------------------------------------
              > ----
              >
              > Runtime Error
              > Description: An application error occurred on the server. The current
              > custom
              > error settings for this application prevent the details of the application
              > error from being viewed remotely (for security reasons). It could,
              > however,
              > be viewed by browsers running on the local server machine.
              >
              > Details: To enable the details of this specific error message to be
              > viewable
              > on remote machines, please create a <customErrors > tag within a
              > "web.config "
              > configuration file located in the root directory of the current web
              > application. This <customErrors > tag should then have its "mode" attribute
              > set to "Off".
              >
              > <!-- Web.Config Configuration File -->
              >
              > <configuratio n>
              > <system.web>
              > <customErrors mode="Off"/>
              > </system.web>
              > </configuration>
              >
              > Notes: The current error page you are seeing can be replaced by a custom
              > error page by modifying the "defaultRedirec t" attribute of the
              > application's
              > <customErrors > configuration tag to point to a custom error page URL.
              >
              > <!-- Web.Config Configuration File -->
              >
              > <configuratio n>
              > <system.web>
              > <customErrors mode="RemoteOnl y"
              > defaultRedirect ="mycustompage. htm"/>
              > </system.web>
              > </configuration>
              >
              >[/color]



              Comment

              • nicholas

                #8
                Re: customErrors mode=&quot;off& quot;

                - The website is hosted, so I cannot check for the machine.config.
                - my web.config has just 1 customerror line

                On my testing server I see the detailed error.

                realy weird ....

                "Leszek Taratuta" <ads@taratuta.n et> wrote in message
                news:%23QiarOl$ EHA.1300@TK2MSF TNGP14.phx.gbl. ..[color=blue]
                > The machine.config file provides settings for the entire machine, not only
                > for a single Web Application.
                > It resides in the .NET directory. On my machine it is:
                > C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ CONFIG
                > Try searching your hard-drive for machine.config.
                > This file contains <customErrors mode="RemoteOnl y"/> by default.
                > Anyway this file (machine.config ) is taken into account only when you do[/color]
                not[color=blue]
                > have web.config, so it is unlikely source of your problem.
                >
                > Also check web.config that provides settings for your application. Maybe[/color]
                you[color=blue]
                > have multiple <customErrors > nodes. They might override their settings.
                >
                > Leszek
                >
                > "nicholas" <murmurait1@hot mail.com> wrote in message
                > news:ONmSYCl$EH A.1908@TK2MSFTN GP15.phx.gbl...[color=green]
                > > 1) All web.config have customerrors = off
                > > 2) I'm not using a machine.config, what is this for?
                > >
                > > THX for your reply !
                > > Nic.
                > >
                > > "Leszek Taratuta" <ads@taratuta.n et> wrote in message
                > > news:%23wHea$k$ EHA.1404@TK2MSF TNGP11.phx.gbl. ..[color=darkred]
                > > > 1. Are you using multiple web.config files? Check all of them.
                > > > 2. What about machine.config?
                > > >
                > > > Leszek Taratuta
                > > >
                > > > "nicholas" <murmurait1@hot mail.com> wrote in message
                > > > news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...
                > > > > Although in my web.config I have <customErrors mode="off" /> I still[/color][/color]
                > get[color=green][color=darkred]
                > > > no
                > > > > detailed errors.
                > > > > How comes ?
                > > > >
                > > > > THX
                > > > >
                > > > > This is what I get:
                > > > >
                > > > >
                > > > > Server Error in '/mywebfolder'App lication.
                > > >[/color]
                > >[/color]
                >
                > --------------------------------------------------------------------------[color=green][color=darkred]
                > > > --
                > > > > ----
                > > > >
                > > > > Runtime Error
                > > > > Description: An application error occurred on the server. The[/color][/color][/color]
                current[color=blue][color=green][color=darkred]
                > > > custom
                > > > > error settings for this application prevent the details of the[/color]
                > > application[color=darkred]
                > > > > error from being viewed remotely (for security reasons). It could,
                > > > however,
                > > > > be viewed by browsers running on the local server machine.
                > > > >
                > > > > Details: To enable the details of this specific error message to be
                > > > viewable
                > > > > on remote machines, please create a <customErrors > tag within a
                > > > "web.config "
                > > > > configuration file located in the root directory of the current web
                > > > > application. This <customErrors > tag should then have its "mode"[/color]
                > > attribute[color=darkred]
                > > > > set to "Off".
                > > > >
                > > > > <!-- Web.Config Configuration File -->
                > > > >
                > > > > <configuratio n>
                > > > > <system.web>
                > > > > <customErrors mode="Off"/>
                > > > > </system.web>
                > > > > </configuration>
                > > > >
                > > > > Notes: The current error page you are seeing can be replaced by a[/color][/color]
                > custom[color=green][color=darkred]
                > > > > error page by modifying the "defaultRedirec t" attribute of the
                > > > application's
                > > > > <customErrors > configuration tag to point to a custom error page[/color][/color][/color]
                URL.[color=blue][color=green][color=darkred]
                > > > >
                > > > > <!-- Web.Config Configuration File -->
                > > > >
                > > > > <configuratio n>
                > > > > <system.web>
                > > > > <customErrors mode="RemoteOnl y"
                > > > defaultRedirect ="mycustompage. htm"/>
                > > > > </system.web>
                > > > > </configuration>
                > > > >
                > > > >
                > > >
                > > >[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • nicholas

                  #9
                  Re: customErrors mode=&quot;off& quot;

                  Hi,
                  [color=blue]
                  > Are you sure that the web.config is in a directory
                  > marked as an Application or a Virtual Directory in IIS ?[/color]
                  As it is hosted, I can't see if they did it OK, unfortunately.
                  [color=blue]
                  > It could very well be ( in fact it probably is )
                  > that you're seeing an ASP.NET error message,
                  > and not a *custom* error page being displayed.[/color]
                  I know the error message, my hoster forwarded it to me.
                  It is a message that says that the sql-server cannot be found.
                  So there was a problem in my connection string.
                  That is solved. But I would like to understand why I couldn't see the error.
                  [color=blue]
                  > btw, in IE, do you have "Show friendly HTTP error messages"
                  > selected in "Tools", "Internet Options", "Advanced" ?[/color]
                  No.
                  If I generate the same error on my testing server, I can see the error.

                  Conclusion: I think the problem situates itself at the hoster.
                  Must be some virtual directory thing.

                  Thx a lot!
                  Nic



                  "Juan T. Llibre" <nomailreplies@ nowhere.com> wrote in message
                  news:e0XGYVl$EH A.2788@TK2MSFTN GP15.phx.gbl...[color=blue]
                  > Are you sure that the web.config is in a directory
                  > marked as an Application or a Virtual Directory in IIS ?
                  >
                  > If it is not, the web.config in the root directory,
                  > or the settings in machine.config, will decide whether
                  > custom errors will be displayed.
                  >
                  > The default setting for custom errors in asp.net 1.1 is :
                  > <customErrors mode="RemoteOnl y" />
                  >
                  > The possible settings are :
                  >
                  > On : Always display custom errors
                  >
                  > Off : Always display *ASP.NET* error pages
                  > ( Notice: this does *not* mean that no error messages
                  > will be displayed. It means that ASP.NET error messages
                  > will be displayed.
                  >
                  > RemoteOnly : Display custom errors to remote
                  > clients and ASP.NET errors to localhost
                  >
                  > It could very well be ( in fact it probably is )
                  > that you're seeing an ASP.NET error message,
                  > and not a *custom* error page being displayed.
                  >
                  > btw, in IE, do you have "Show friendly HTTP error messages"
                  > selected in "Tools", "Internet Options", "Advanced" ?
                  >
                  >
                  >
                  > Juan T. Llibre
                  > ASP.NET MVP
                  > ===========
                  > "nicholas" <murmurait1@hot mail.com> wrote in message
                  > news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=green]
                  > > Although in my web.config I have <customErrors mode="off" /> I still get
                  > > no
                  > > detailed errors.
                  > > How comes ?
                  > >
                  > > THX
                  > >
                  > > This is what I get:
                  > >
                  > >
                  > > Server Error in '/mywebfolder'App lication.[/color]
                  >
                  > --------------------------------------------------------------------------[/color]
                  --[color=blue][color=green]
                  > > ----
                  > >
                  > > Runtime Error
                  > > Description: An application error occurred on the server. The current
                  > > custom
                  > > error settings for this application prevent the details of the[/color][/color]
                  application[color=blue][color=green]
                  > > error from being viewed remotely (for security reasons). It could,
                  > > however,
                  > > be viewed by browsers running on the local server machine.
                  > >
                  > > Details: To enable the details of this specific error message to be
                  > > viewable
                  > > on remote machines, please create a <customErrors > tag within a
                  > > "web.config "
                  > > configuration file located in the root directory of the current web
                  > > application. This <customErrors > tag should then have its "mode"[/color][/color]
                  attribute[color=blue][color=green]
                  > > set to "Off".
                  > >
                  > > <!-- Web.Config Configuration File -->
                  > >
                  > > <configuratio n>
                  > > <system.web>
                  > > <customErrors mode="Off"/>
                  > > </system.web>
                  > > </configuration>
                  > >
                  > > Notes: The current error page you are seeing can be replaced by a custom
                  > > error page by modifying the "defaultRedirec t" attribute of the
                  > > application's
                  > > <customErrors > configuration tag to point to a custom error page URL.
                  > >
                  > > <!-- Web.Config Configuration File -->
                  > >
                  > > <configuratio n>
                  > > <system.web>
                  > > <customErrors mode="RemoteOnl y"
                  > > defaultRedirect ="mycustompage. htm"/>
                  > > </system.web>
                  > > </configuration>
                  > >
                  > >[/color]
                  >
                  >
                  >[/color]


                  Comment

                  • Scott Simons

                    #10
                    RE: customErrors mode=&quot;off& quot;

                    It sounds like you are accessing the page remotely and not locally. Doing so
                    will also cause this to happen. I believe there is something along the lines
                    of remoteerrors in the web.config that you have to turn on.

                    Comment

                    • Suhaib Khan

                      #11
                      Re: customErrors mode=&quot;off& quot;

                      I'm not sure whether this problem is related to what I had, but still I'm
                      sharing it over here. On one of my production server my application was
                      throwing exception from Application_OnS tart event but it was not getting
                      displayed in the browser window. In the end I had to capture this error in
                      Application_OnE rror event and that solved my problem.

                      This happened with .NET 1.1.


                      "nicholas" <murmurait1@hot mail.com> wrote in message
                      news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=blue]
                      > Although in my web.config I have <customErrors mode="off" /> I still get[/color]
                      no[color=blue]
                      > detailed errors.
                      > How comes ?
                      >
                      > THX
                      >
                      > This is what I get:
                      >
                      >
                      > Server Error in '/mywebfolder'App lication.
                      > --------------------------------------------------------------------------[/color]
                      --[color=blue]
                      > ----
                      >
                      > Runtime Error
                      > Description: An application error occurred on the server. The current[/color]
                      custom[color=blue]
                      > error settings for this application prevent the details of the application
                      > error from being viewed remotely (for security reasons). It could,[/color]
                      however,[color=blue]
                      > be viewed by browsers running on the local server machine.
                      >
                      > Details: To enable the details of this specific error message to be[/color]
                      viewable[color=blue]
                      > on remote machines, please create a <customErrors > tag within a[/color]
                      "web.config "[color=blue]
                      > configuration file located in the root directory of the current web
                      > application. This <customErrors > tag should then have its "mode" attribute
                      > set to "Off".
                      >
                      > <!-- Web.Config Configuration File -->
                      >
                      > <configuratio n>
                      > <system.web>
                      > <customErrors mode="Off"/>
                      > </system.web>
                      > </configuration>
                      >
                      > Notes: The current error page you are seeing can be replaced by a custom
                      > error page by modifying the "defaultRedirec t" attribute of the[/color]
                      application's[color=blue]
                      > <customErrors > configuration tag to point to a custom error page URL.
                      >
                      > <!-- Web.Config Configuration File -->
                      >
                      > <configuratio n>
                      > <system.web>
                      > <customErrors mode="RemoteOnl y"[/color]
                      defaultRedirect ="mycustompage. htm"/>[color=blue]
                      > </system.web>
                      > </configuration>
                      >
                      >[/color]


                      Comment

                      • Bob Lehmann

                        #12
                        Re: customErrors mode=&quot;off& quot;

                        That's not what you wrote.

                        Bob Lehmann

                        "nicholas" <murmurait1@hot mail.com> wrote in message
                        news:eL2mcUl$EH A.1524@TK2MSFTN GP09.phx.gbl...[color=blue]
                        > in my web.config it is OK: Off
                        >
                        > THX anyway
                        >
                        > "Bob Lehmann" <none> wrote in message
                        > news:utzr2Kl$EH A.2580@TK2MSFTN GP15.phx.gbl...[color=green]
                        > > I believe it's case-sensitive - "Off", not "off".
                        > >
                        > > Bob Lehmann
                        > >
                        > > "nicholas" <murmurait1@hot mail.com> wrote in message
                        > > news:en6rW7k$EH A.2012@TK2MSFTN GP15.phx.gbl...[color=darkred]
                        > > > Although in my web.config I have <customErrors mode="off" /> I still[/color][/color][/color]
                        get[color=blue][color=green]
                        > > no[color=darkred]
                        > > > detailed errors.
                        > > > How comes ?
                        > > >
                        > > > THX
                        > > >
                        > > > This is what I get:
                        > > >
                        > > >
                        > > > Server Error in '/mywebfolder'App lication.[/color]
                        > >[/color]
                        >
                        > --------------------------------------------------------------------------[color=green]
                        > > --[color=darkred]
                        > > > ----
                        > > >
                        > > > Runtime Error
                        > > > Description: An application error occurred on the server. The current[/color]
                        > > custom[color=darkred]
                        > > > error settings for this application prevent the details of the[/color][/color]
                        > application[color=green][color=darkred]
                        > > > error from being viewed remotely (for security reasons). It could,[/color]
                        > > however,[color=darkred]
                        > > > be viewed by browsers running on the local server machine.
                        > > >
                        > > > Details: To enable the details of this specific error message to be[/color]
                        > > viewable[color=darkred]
                        > > > on remote machines, please create a <customErrors > tag within a[/color]
                        > > "web.config "[color=darkred]
                        > > > configuration file located in the root directory of the current web
                        > > > application. This <customErrors > tag should then have its "mode"[/color][/color]
                        > attribute[color=green][color=darkred]
                        > > > set to "Off".
                        > > >
                        > > > <!-- Web.Config Configuration File -->
                        > > >
                        > > > <configuratio n>
                        > > > <system.web>
                        > > > <customErrors mode="Off"/>
                        > > > </system.web>
                        > > > </configuration>
                        > > >
                        > > > Notes: The current error page you are seeing can be replaced by a[/color][/color][/color]
                        custom[color=blue][color=green][color=darkred]
                        > > > error page by modifying the "defaultRedirec t" attribute of the[/color]
                        > > application's[color=darkred]
                        > > > <customErrors > configuration tag to point to a custom error page URL.
                        > > >
                        > > > <!-- Web.Config Configuration File -->
                        > > >
                        > > > <configuratio n>
                        > > > <system.web>
                        > > > <customErrors mode="RemoteOnl y"[/color]
                        > > defaultRedirect ="mycustompage. htm"/>[color=darkred]
                        > > > </system.web>
                        > > > </configuration>
                        > > >
                        > > >[/color]
                        > >
                        > >[/color]
                        >
                        >[/color]


                        Comment

                        • Chuck Green

                          #13
                          Re: customErrors mode=&quot;off& quot;

                          I get that exact same error when I try to use MSN Messenger, how do I
                          fix it? Please e-mail me if you can help. Thanks.



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

                          Comment

                          • Gema .

                            #14
                            Re: customErrors mode=&quot;off& quot;



                            PLEASE, HELP ME!!
                            MY MSN MESSENGER PROGRAM HAS AN ERROR AND I DON´T KNOW HOW CAN I DO TO
                            REPAIR. PLEASE, SEND ME THE SOLUTION.

                            gemma_queen_33@ hotmail.com

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

                            Comment

                            • Juan T. Llibre

                              #15
                              Re: customErrors mode=&quot;off& quot;

                              Don't get your panties in a bunch.

                              The MSN Messenger service is down.



                              Juan T. Llibre
                              ASP.NET MVP

                              Foros de ASP.NET en Español
                              =============== ======

                              "Gema ." <gemma_queen_33 @hotmail.com> wrote in message
                              news:uwuRykhDFH A.2216@TK2MSFTN GP09.phx.gbl...[color=blue]
                              >
                              >
                              > PLEASE, HELP ME!!
                              > MY MSN MESSENGER PROGRAM HAS AN ERROR AND I DON´T KNOW HOW CAN I DO TO
                              > REPAIR. PLEASE, SEND ME THE SOLUTION.
                              >
                              > gemma_queen_33@ hotmail.com
                              >
                              > *** Sent via Developersdex http://www.developersdex.com ***
                              > Don't just participate in USENET...get rewarded for it![/color]


                              Comment

                              Working...