More in this section

Forums / General Discussions / General Question about SF 5 and CustomErrors mode in web.config

General Question about SF 5 and CustomErrors mode in web.config

2 posts, 0 answered
  1. James
    James avatar
    4 posts
    Registered:
    17 Mar 2012
    03 Apr 2012
    Link to this post
    Are all new project web.configs automatically defaulted to customErrors mode="Off" rathar than "On" or "RemoteOnly"?  I uploaded my project to the production server and luckly caught this that it was set to "Off". 
  2. Quba
    Quba avatar
    15 posts
    Registered:
    13 Jun 2006
    04 May 2012
    Link to this post
    Hi James,

    A good way to solve this is to use web.config transformations.

    When you publish your site you choose whether you want it to be Debug/Release/Custom - this then chooses whatever you have defined in the corresponding web.config and injects it into the version it creates.

    For example, you could choose to have customErrors off on local, but then on for release. It's also useful for defining different database connections etc.

    QUBA – sitefinity specialists
2 posts, 0 answered