user29982
user29982

Reputation: 443

Error: The HTTP headers are already written to the client browser

I got this error Response object error 'ASP 0156 : 80004005'

Header Error

/ordermgmt/updateorderstatus.asp, line 1390

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

I put Response.Buffer=true; Stilll it is showing error.

I have put reponse,Redirect @ this line number and that will be executed a number of times (it is in a loop).,After the first iteration it is showing this error

Upvotes: 3

Views: 20358

Answers (6)

Diego Araujo
Diego Araujo

Reputation: 11

Set the property storage enabled = true in IIS > ASP > Storage enabled

Upvotes: 1

cvyryk
cvyryk

Reputation: 131

The same applies if you are using Response.Flush()

Upvotes: 0

kansal
kansal

Reputation: 1

You have to enable buffering on specific page, then you can remove this error like:

<% Response.Buffer = True %>

on top of the ASP form

Upvotes: 0

user29982
user29982

Reputation: 443

Yes buddies, Its Fixed.Before Response.Buffer ,i included another file.Now i changed it to below the Response.Buffer=True line .Its working now .Thanks

Upvotes: 3

Zebra North
Zebra North

Reputation: 11482

Check that you're not outputting anything at all - even a blank line before your start ASP tag will cause this problem.

Upvotes: 1

James Curran
James Curran

Reputation: 103485

The first Response.Redirect changes the headers (and probably forces a Flush, because with a redirect, there can be no content).

The second Response.Redirect changes the headers again (probably to the same thing, but that doesn't matter, as the header were written during the Flush())

Upvotes: 0

Related Questions