You should not write anything to the browser before making any changes to
cookies or trying to redirect (unless you use the response buffer).
Example: this code will produce the same error that you received...
this won't work
Make sure you aren't' outputting anything to the client before you do any
From: Natasha Kelly [mailto:natasha_kelly21@h...]
Sent: Saturday, May 12, 2001 9:53 PM
To: Code Clinic
Subject: [proasp_codeclinic] Response object error ASP 0156:800004005
This is the problem: I get the following output---
vti_sourceencoding:SR|utf8-nl vit_timelastmodified:TR|17 Jan 2001 01:35:23-
vti_sourcecontrolcollkie:SX|S:\\program files\\Visual Source
Response object error 'ASP 0156:800004005'
The HTTP headers are already written to the client brower. ANy HTTP header
modificaitons must be made before writing page content.
1. Reading some of the previous questions re: Response object error 'ASP
0156:800004005' has helped somewhat, but I am puzzled because Line 11 is:
Response.expires = -1 not response.redirect --do I still need to set the
buffer to true?
2. Why is the vti_ output at the top of my page ??? I don't understand