Article ID: 175324 - View products that this article applies to.
This article was previously published under Q175324
This article has been archived. It is offered "as is" and will no longer be updated.
The following error occurs when you browse an Active Server Pages (ASP) file:
Response object error 'ASP 0156'
Header Error <your asp file>, line 3 The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
The following conditions cause the error to occur:
NOTE: The local copy does not change, so you must obtain a working copy to see the changes.
"<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">"
With the above line added to the file, the response properties mentioned above are now set after the HTTP header has been written to the client browser.
Remove the WebBot.
Edit the ASP file in NotePad and remove the "DOCTYPE" line.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Steps to Reproduce Behavior
The first line of the file now contains the <doctype...> instead of <%@ language =...>
For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:
Contact us for more help
Connect with Answer Desk for expert help.