Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 28th, 2005, 08:01 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Chennai, Tamil Nadu, India.
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...
  #2 (permalink)  
Old February 28th, 2005, 07:31 PM
Authorized User
 
Join Date: Jan 2005
Location: Seattle, WA, .
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?

  #3 (permalink)  
Old February 28th, 2005, 11:02 PM
Friend of Wrox
 
Join Date: Jun 2004
Location: Chennai, Tamil Nadu, India.
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
  #4 (permalink)  
Old March 4th, 2005, 03:51 PM
Registered User
 
Join Date: Mar 2005
Location: Columbus, Ohio, USA.
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

  #5 (permalink)  
Old March 4th, 2005, 11:20 PM
Friend of Wrox
 
Join Date: Jun 2004
Location: Chennai, Tamil Nadu, India.
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 09:35 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.