As for the "remote host closed connection exception...", it indicates
the response of the ASP.NET worker thread has been closed due to some
certain
internal exception when flushing data out to the response stream. And
from the internal diassemblied code, this error message is a general
exception
message and we can not get the detailed cause from it or the
related exception handling code logic.
Based on my experience, there
is several possible things can cause the
httprequest connection be closed
unexpectedly.
1. when establshing https/ssl connection
2. when
upload or flush out large data content cause the request timeout or exceed
the max allowed request length.
For your scenario, #1 is not likely the
cause. I'm wondering how often does the error occur in your converted ASP.NET
2.0 applicaiton. Also, is
the problem occuring when the page is flushing out
large data content that is time consuming? For the ASP.NET request, there is
max value setting for
the request length and executiontime, I'm not sure
whether your application or server has ever manualy modified that value in
1.X(in machine.config),
and after converted to 2.0, the application will
inherit 2.0's global configuration which hasn't changed the value
accordingly? The
executionTimeout and other httpRuntime related setting are
in the following configuration element:
http://msdn2.microsoft.com/en-us/lib...41(VS.80).aspxIf
you are using the Application_Error event to handle the unexpected exception,
you can consider record the page that cause the problem. Thus,
we can check
whether the problem occurs on some page which has some common setting or code
logic.
Anyway, since this is a concrete project specific issue, it would
be more helpful if we can generate a simplified page which can reproduce
the
behavior.