Forums

ASP

This topic is locked

Response Object Error 'ASP 0156'

Posted 27 Oct 2002 08:18:20
1
has voted
27 Oct 2002 08:18:20 Jeff S posted:
Please, I need anybody's help with this Header Error that my page is giving me.

Response Object Error 'ASP 0156 80004005'

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

Please help me with the above errors. I was testing my login page on my computer and this is what it gave me when I clicked the button. Initially I made the page and save each as different files names. Is that the cause of the header error? if so what should I do?

Replies

Replied 08 Nov 2002 04:31:08
08 Nov 2002 04:31:08 Dave Blohm replied:
From Microsft's Developer's Network:

When Redirecting Users to the Passport Login Server, My Page Displays an "ASP 0156 Header Error"
The Redirect method of the ASP Response object operates by sending a header to the client. This header causes the client to look to another URL location specified in the header. Most likely you are redirecting to the Passport Login server after Passport authentication has failed. Because a header must come at the beginning of a document, it is not possible to place the Redirect method in a document if headers, cookies, HTML, or HTML-generation code that produce a response have preceded it. More information on this topic can be found in Microsoft Knowledge Base article Q159402, How to Use Response.Redirect in a Server Script .

URL to full page:

msdn.microsoft.com/library/default.asp?url=/library/en-us/ppsdk14/TSHOOT/tshoot3.asp

The entry at the top of this post is about half way down the page...

msdn.microsoft.com is a good resource for IIS server-thrown errors...

Hope this helps...

Doc
Rangewalk Digital Studios

Reply to this topic