locked
Question about CustomErrors RRS feed

  • Question

  • User-31278322 posted

    Dear all I'm facing a strange behavior with customerror configuration 

    In my website I've configured in web.config the following parameters:

    <customErrors mode="On" defaultRedirect="/htm/errore_o.htm">
    <error statusCode="404" redirect="/errore404.htm" />
    <error statusCode="500" redirect="/errore404.htm"/>
    </customErrors>


    <httpErrors>
    <remove statusCode="500" subStatusCode="-1" />
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" prefixLanguageFilePath="" path="/errore404.htm" responseMode="ExecuteURL" />
    <error statusCode="500" prefixLanguageFilePath="" path="/m/GesErr/error.asp" responseMode="ExecuteURL" />
    </httpErrors>

    When I call the following url

    http://www.mysite.com/myfolder/search.aspx?aspxerrorpath=%3CCa

    The custom error page is not displayed but appears the YSOD

    When I call the following url

    http://www.mysite.com/myfolder/search.aspx?%3CCa

    the custom error page is correctly displayed.

    To complete the strange situation, this behavior appears only in Production site, not in development environment

    Can someone help me to identify the problem?

    Best regards

    Fabrizio

    Friday, June 6, 2014 9:55 AM

Answers

All replies