.Net 1.1 to 2.0 Issue?

  • Thread starter Thread starter Samata
  • Start date Start date
S

Samata

Hi,

I have an ASP.Net application developed using framework 1.1. But it
is deployed on a machine which contains framework 2.0.

The application throws error when Respose.Redirect is called.
Following is the error.

"Thread was being aborted.mscorlib at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at
System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at
System.Web.HttpResponse.Redirect(String url) ...."

I did not use the "end response" boolean in Response.redirect method.
This problem never arised on the machines with .net framework 1.1. Why
only with .net framework 2.0?

Please help!!

Regards,
Samata.
 
Samata said:
Hi,

I have an ASP.Net application developed using framework 1.1. But it
is deployed on a machine which contains framework 2.0.

The application throws error when Respose.Redirect is called.
Following is the error.

"Thread was being aborted.mscorlib at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at
System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at
System.Web.HttpResponse.Redirect(String url) ...."

I did not use the "end response" boolean in Response.redirect method.
This problem never arised on the machines with .net framework 1.1. Why
only with .net framework 2.0?

Please help!!

Regards,
Samata.

I don't know why framework 2 does that, but the default behaviour of
Redirect is to end the response. The boolean is used to make it not end
the response.
 
It is sure some .net 1.1 program can not run under .net 2.0 and the problem
is not easy to slave ,so I suggest that U paste Ur code into Visual Studio
2005 and rebuild it .
 
Back
Top