The configuration section 'customErrors' cannot be read because it is missing a section declaration - Azure

ASP.NETErrorsWeb Development

Hey everyone,

The configuration section ‘customErrors’ cannot be read because it is missing a section declaration

I started receiving this error after I added the following elements to my Web.config file:

The problem turned out to be that the custom errors entry actually belongs under system.web. All you actually need to add it the part – just make sure it’s under system.web.


    <!-- Custom errors under system.web -->