Posted on: 1/21/2015 3:59:48 AM | Views : 639

For some reason my customErrors Mode is not being set to ON for production.  Can anyone find out what I have wrong?  My App key settings seem to be working fine and transforming like they should.
Code in Web.Config:
<customErrors mode="Off" defaultRedirect="~/Pages/Errors.aspx"> Code in Web.Release.Config
<customErrors mode="On" defaultRedirect="~/Pages/Error.aspx" xdt:Transform="SetAttributes" xdt:Locator="Match(mode)" /> But when I look at my web.config after it is published under RELEASE it looks like this:
<customErrors mode="Off" defaultRedirect="~/Pages/Errors.aspx"> <error statusCode="404" redirect="~/Pages/Custom404Error.aspx" /> </customErrors>

Go to the complete details ...