Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response object error 'ASP 0156 : 80004005' HELP! 1

Status
Not open for further replies.

PleaseGiveHelp

Programmer
Oct 29, 2002
131
0
0
US
I have an .asp page - when the user clicks the link to delete it brings them to yet another .asp page where at the end of the delete code I have a redirect statement. Yet it doesn't seem to be liked. This is the error I receive. Why?

Response object error 'ASP 0156 : 80004005'

Header Error

/admin/exceptions/harvey/delete.asp, line 26

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
 
Add
<%response.buffer="true"%>
To the top of your page. The problem is that you are using IIS4.0 and buffering is off by default.
 
BTW. To turn buffering on:
Just go to the control panel >> Administrative Tools >> Internet Services Manager.
Right-click on the default website.
Select the "Home Directory" tab. Click the "Configuration" button.
Click the "App Options" tab.
Check "Enable Buffering".
This will allow you to redirect without the response.buffer="true" statement.
 
BTW,
You will also take a performance hit if you enable site level buffering via the IIS MMC.

- Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top