none
enable custom errors tag in web.config file RRS feed

  • Question

  • is it safe to change the following tag in web.config file

    Edit web.config file, change <CustomErrors
    mode="Off"> to <CustomErrors mode="RemoteOnly">

    and leave it like this forever

    other question:

    where can i find the following file:

    "_vti_inf.html" and what permission this file should have?

    Thursday, January 26, 2017 9:42 PM

Answers

  • yes, we can do it "on" always. but it shows your source code line where it is throwing.

    http://www.dotnettricks.com/learn/aspnet/turn-off-aspnet-custom-errors-in-webconfig


    Please remember to click Mark as Answer on the answer if it helps you

    Thursday, January 26, 2017 10:24 PM
  • Microsoft always recommend it to "Off" for production sites.

    Please remember to click Mark as Answer on the answer if it helps you

    Thursday, January 26, 2017 10:58 PM

All replies

  • Hi,

    If you want to debug, pls do that

    https://blogs.msdn.microsoft.com/voyage/2014/09/02/enable-debugging-and-set-custom-errors-off-in-sharepoint/


    Please remember to click Mark as Answer on the answer if it helps you

    Thursday, January 26, 2017 10:00 PM
  • I know but my question is:

    is it ok to leave it "on" all the time even after i am done debugging?

    Thursday, January 26, 2017 10:14 PM
  • yes, we can do it "on" always. but it shows your source code line where it is throwing.

    http://www.dotnettricks.com/learn/aspnet/turn-off-aspnet-custom-errors-in-webconfig


    Please remember to click Mark as Answer on the answer if it helps you

    Thursday, January 26, 2017 10:24 PM
  • what is the best proactive from security site? what Microsoft recommend to leave it on?

    not sure if i want someone to see my code

    Thursday, January 26, 2017 10:27 PM
  • Microsoft always recommend it to "Off" for production sites.

    Please remember to click Mark as Answer on the answer if it helps you

    Thursday, January 26, 2017 10:58 PM