Object moved to here

B

Brad

In one of my asp.net apps a response.redirect is sometimes resulting in the
blank page with "Object moved to here." I've tried repsonse.clear and
response.buffer (true & false) but still get this error sproadically.
Understand this was problem in some older versions of browsers...I'm using
IE6


Brad
 
J

John Timney \(Microsoft MVP\)

'Response.BufferOutput = true has to be placed directly before the redirect
statement.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 
S

Steven Cheng[MSFT]

Hi Brad,

It seems that the problem you met is an existing issue of the Internet
Explorer, here is the related kb article:

#Internet Explorer Returns Error Message When Being Redirected
http://support.microsoft.com/?id=193489

Please have a look to see whether it helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
S

Steven Cheng[MSFT]

Hi Brad,

Yes, the kb article is provided for IE4, 5, but based on my research, there
seems has some former issues dicussing on the same problem and the IE
version is 6. So I think you can have a try on the workarounds in the kb
article or even try requesting the hotfix mentioned in it. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
J

John Timney \(Microsoft MVP\)

Also, if the KB article Steven suggests doesn't help you:

The actual cause is that your output is being seen as non-buffered data by
the browser. Thus, the response contains two packets of resulting data, the
first being a 302 Object Moved HTTP response. IE gets the first packet and
starts to redirect (correctly based on the HTTP header) and then receives
the second packet and stops the redirect, hence the moved message.

A workaround is to add an ihttpmodule to the chain that adds a html meta
refresh instead of using a response.redirect to the actual page output, thus
the browser actually receives the completed output terminated with a
response.end and on receiving the completed stream correctly moves to the
new page. This should work for all IE instances.
--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 
S

Steven Cheng[MSFT]

Hi Brad,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If there're anything else we can
help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Joined
Oct 14, 2009
Messages
2
Reaction score
0
Object moved to here Reply to Thread

Hi
i am getting the same error like Brad had posted. i am using asp.net 2.0. its some time causing me the problem and some time work well.all other page except this working well.

The error is "Object moved to here. "
please help me out...
thanks & regards
hemant yadav
software engineer
smilemd.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top