p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Response object error ASP 0156:800004005


Message #1 by "Natasha Kelly" <natasha_kelly21@h...> on Sun, 13 May 2001 04:52:49
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...

<html>
	<head>
		<title>broken code</title>
	</head>
	<body>
		this won't work
	</body>
</html>
<%
Response.Redirect "somepage.htm"
%>

Make sure you aren't' outputting anything to the client before you do any
header modifications.

Michael Earls

-----Original Message-----
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-
0000
vti_extenderversion:SR|4.0.2.2717 vti_sourcecontrolversion:SX|VI
vti_sourcecontrolcollkie:SX|S:\\program files\\Visual Source 
Safe\\scrsafe.ini

Response object error 'ASP 0156:800004005'

Header Error

line 11

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 
this??

  Return to Index