If you are getting this error from a ASP web application: error ‘ASP 0156 : 80004005’ Header Error, The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Please check that buffering is enabled in IIS.
- In the IIS management console, navigate to your website
- Select the ASP node.
- Set “Enable buffering” to True