Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 28th, 2005, 09:01 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default Object Moved to here

Hi Experts,

I am getting the following error when I do a Response.Redirect from an aspx page to another aspx page. I am using the following code in my global.asax Application_Error event to redirect to an error page.

    Session["Error"] = Server.GetLastError();
    Response.Redirect("Error.aspx");

However I am not able to go to the Error Page and am getting this error. I searched the web and somewhere I got an instruction to add the following lines to the code

    Response.Expires = 0;
    Response.Buffer = true;
    Response.Clear();

I added those lines but still am getting this error. I am getting the error only in the production site and not in my development environment.

Can anyone please help me get out of this urgent issue.

Thanking you in advance



Regards
Ganesh
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
 
Old February 28th, 2005, 08:31 PM
Authorized User
 
Join Date: Jan 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What is the error? Do you have Sessions enabled in your web.config on the production server?

 
Old March 1st, 2005, 12:02 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

I am getting the error "Object Moved to Here". All other pages in the application are working well. This is an error page which I added in an already working application. I wrote code in the Global.asax to redirect to the error page on an unhandled error.

Regards
Ganesh
 
Old March 4th, 2005, 04:51 PM
Registered User
 
Join Date: Mar 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not sure how your code works. But just double check that you don’t have a repsonse.redirect within the executing section. Because it causes problems when u switch from an excuting thread to a new thread.

Jay

 
Old March 5th, 2005, 12:20 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

I have written the Response.Redirect in the Application_Error event in Global.asax.cs so that the error page is displayed each time an unhandled exception is thrown. However it fails there.

Regards
Ganesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Moved to Here r_ganesh76 General .NET 2 October 14th, 2009 01:12 AM
Moved from VC6 to VC2003 synaptic Visual C++ 2 August 19th, 2005 09:38 AM
Chapter 8... moved? webmeister BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 September 26th, 2004 03:47 AM
"Object has moved here" message itekcorp ASP.NET 1.0 and 1.1 Basics 0 October 14th, 2003 11:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.