We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Disable detailed errors in error pages via Group Policy  [Answered]RSS

2 replies

Last post Sep 24, 2020 07:41 AM by Maverick073

  • Disable detailed errors in error pages via Group Policy

    Sep 23, 2020 09:50 AM|Maverick073|LINK

    Hi all, 

    I would like to know if there is a way to disable detailed errors for multiple websites via a policy. 

    Currently we have to disable this per site or per server, however any admin can change this back and forget to put it back. 

    Is it possible to do this by group policy ?

    Are there group policies espacially for iis ?

     

  • Re: Disable detailed errors in error pages via Group Policy

    Sep 24, 2020 03:08 AM|Brucz|LINK


    Hi Maverick073,

    In IIS, the administrator has the highest authority, and there is no suitable method to restrict the administrator to permanently disable a certain function. For your needs, I think other methods can be used, but it is only effective for non-administrator users.

    Administrators, developers/site owners have different permissions in iis, function delegation allows administrators to set different configurations for developers.


    You can set configuration section locking in server, forcing custom errors of certain sites not to display detailed information, even if the developer has set to enable this feature in the web.config. Just change error pages to read only and disable detailed error at server level.


     
    Reference document

    Best regards,
    Burcz

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
  • Re: Disable detailed errors in error pages via Group Policy

    Sep 24, 2020 07:41 AM|Maverick073|LINK

    Thanks for this information, didn`t knew this was possible.