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...
|