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

Posted by Community Admin on 03-Aug-2018 19:17

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

All Replies

Posted by Community Admin on 03-Apr-2012 00:00

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". 

Posted by Community Admin on 04-May-2012 00:00

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

This thread is closed