PRB: Doctype Parsing Behavior in Visual InterDevID: Q175324
|
The following error occurs when browsing 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:
"<!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.
-or-
Edit the ASP file in NotePad and remove the "DOCTYPE"
line.
-or-
Don't use "response.expires" or "Response.buffer".
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
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:
http://support.microsoft.com/support/vinterdev/
Additional query words:
Keywords : kbExtension kbFrontPage kbServer kbVisID100 kbGrpASP
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 13, 1999