Article ID: 175324
Article Last Modified on 5/2/2006
APPLIES TO
- Microsoft Visual InterDev 1.0 Standard Edition
- Microsoft FrontPage 97 Standard Edition
This article was previously published under Q175324
SYMPTOMS
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.
CAUSE
The following conditions cause the error to occur:
- The ASP file contains a WebBot from FrontPage 97.
- The ASP file contains a 'response.expires' or 'response.buffer'.
Every time the file is saved in Visual InterDev, the FrontPage Server
Extensions parse the file and add the following line to the top of the file:
"<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">"
NOTE: The local copy does not change, so you must obtain a working copy to see the changes.
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.
RESOLUTION
Remove the WebBot.
-or-
Edit the ASP file in NotePad and remove the "DOCTYPE"
line.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
REFERENCES
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:
Keywords: kbprb KB175324