« Previous Next »

Thread: customErrors mode="Off" not working

Last post 10-15-2009 2:16 PM by cstobbe. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 01-16-2009, 4:43 PM

    • cstobbe
    • Top 500 Contributor
    • Joined on 11-21-2008, 2:20 PM
    • Edmonton, AB
    • Posts 21

    customErrors mode="Off" not working

    We have a web site where we want detailed errors to appear.

    The web.config contains this line:

     <customErrors mode="Off" />

    In ASP.NET 2.0, this is working nicely.

    In ASP.NET 1.1, we see the detailed error only when running the browser on the same machine as the web server. On any other computer, all we get (from a test app that intentionally generates a 500.19) is "The page cannot be displayed because an internal server error has occurred."

    What other settings need to be set?
  • 01-17-2009, 4:23 AM In reply to

    Re: customErrors mode="Off" not working

    Hello,

    It sounds like you have some parent web.config with <customErrors mode="RemoteOnly"/>

    Regards

  • 01-19-2009, 2:46 PM In reply to

    • cstobbe
    • Top 500 Contributor
    • Joined on 11-21-2008, 2:20 PM
    • Edmonton, AB
    • Posts 21

    Re: customErrors mode="Off" not working

    HostingASPNet:
    It sounds like you have some parent web.config with <customErrors mode="RemoteOnly"/>

    I wish it was that easy. The parent folder to this web app has no web.config. The next higher parent web.config, which is the root of the site, also has <customErrors mode="Off"/>. The machine.config also has <customErrors mode="Off"/>.

    What other ways can I diagnose why ASP.NET 1.1 is doing this?

  • 10-15-2009, 1:09 PM In reply to

    • eristoff
    • Not Ranked
    • Joined on 10-15-2009, 5:05 PM
    • Posts 1

    Re: customErrors mode="Off" not working

    hello,

    At a parent web.config we had:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <handlers accessPolicy="Read, Execute, Script" />
            <httpErrors errorMode="DetailedLocalOnly" />
        </system.webServer>
    </configuration>

     

    we changed the value to:

    <httpErrors errorMode="Detailed" />

    And it worked, the errors are now displayed on the client browser and not only on the server.

     

    Got here trough the search:

    customErrors mode="Off" IIS 7 asp 1.1 500

     

    Regards

  • 10-15-2009, 2:16 PM In reply to

    • cstobbe
    • Top 500 Contributor
    • Joined on 11-21-2008, 2:20 PM
    • Edmonton, AB
    • Posts 21

    Re: customErrors mode="Off" not working

     Thanks for the advice, but we do not have <httpErrors in any web.config or machine.config anywhere.

Page 1 of 1 (5 items)
Microsoft Communities