asp.net - can't get httpErrors to show yellow screen of death with details -


i've looked @ many posts using httperrors , believe there's deeper issue project, or @ least understanding.

we've moved using customerrors using httperrors instead. custom error show fine, in case of error, see iis blue screen (that has no information error).

since i've been trying custom error page remotely , ysod locally, no success.

i've added "response.tryskipiiscustomerrors = true;" application_error in global.asax.cs didn't seem make difference. also, project uses both asp .net mvc, not sure if makes difference.

i've been playing around existingresponse , errormode , these results i've been seeing: (let know if formatting doesn't make sense)

[existingresponse | errormode | remoteresult | localresult]

|    replace       | detailedlocalonly | correct error page | iis blue screen

|    replace       |           custom        | correct error page | correct error page

| passthrough  | detailedlocalonly |            ysod          |    ysod

|        auto         |          custom        |            ysod          |    ysod

|        auto         | detailedlocalonly |            ysod          |    ysod

here webconfig:

<httperrors existingresponse="auto" errormode="custom">   <remove statuscode="404" substatuscode="-1" />   <error statuscode="404" substatuscode="-1"  prefixlanguagefilepath="" path="404.html" responsemode="file" />   <remove statuscode="500" substatuscode="-1" />   <error statuscode="500" substatuscode="-1"  prefixlanguagefilepath="" path="500.html"  responsemode="file"/> </httperrors>   

global.asax.cs

  protected void application_error(object sender, eventargs e)   {       response.tryskipiiscustomerrors = true;        exception ex = server.getlasterror().getbaseexception();       logprovider.log(logprovider.loglevels.error, "global error", ex);   } 

thanks help.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -