Forum Moderators: open

Message Too Old, No Replies

Getting "Response object error"

IE6

         

mahlon

6:40 pm on Jul 16, 2002 (gmt 0)

10+ Year Member



Response object error
Header Error

/xxxxxx/xxxxx.asp, line 31

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

This is happening sudddenly, any clues?

JuDDer

6:57 pm on Jul 16, 2002 (gmt 0)

10+ Year Member



This usually happens if you are trying to do a response.redirect or set a cookie after some html has already been written to the browser.

Have you modified that page lately or moved the site to a new server?

mahlon

7:01 pm on Jul 16, 2002 (gmt 0)

10+ Year Member



I have not modified or moved to new server, I forgot to mention the page/pages load fine in Netscape but not in IE or Opera. It seems like it started doing this after I cleaned out my cookies and temp files the other day.

aspdaddy

8:36 am on Jul 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi mahlon,

I have to agree with JuDDer - are you sure you were not viewing cached output and have changed something before that caused the error.

Any HTML ( inc. comments) can cause this - putting a response.buffer=true can fix it if it is this problem

joshie76

1:05 pm on Jul 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I cleaned out my cookies

I'm guessing that there is some ASP code that only drops a cookie if there isn't one which is why you haven't run into the problem until the server tried to drop a cookie.

As aspdaddy says - a Reponse.Buffer = True declaration at the top of you page should resolve your problem otherwise check the code that is dropping cookies (etc) and make sure it happens before any HTML or Response.Write methods.