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