Hi,
I'am developping a windows forms application in VS 2005 using a web service asp.net in VB and something and sometime, not at the same place, aspnet_wp.exe is crashing.
The client call a function on the server ( in the web service ) and when the process is terminated, the web service return an answer (true or false). The process take above 15 minutes to execute. Sometime it work, sometime it not work. I call the web service in ASynch mode, using handler when the process is terminated.
Here is the error (client side):
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.WebClientAsyncResult.WaitForResponse()
at System.Web.Services.Protocols.WebClientProtocol.EndSend(IAsyncResult asyncResult, Object& internalAsyncState, Stream& responseStream)
at System.Web.Services.Protocols.SoapHttpClientProtocol.InvokeAsyncCallback(IAsyncResult result)
Here is my error in the application event log on the server (I have use the UnhandledExceptionModule.dll module to have more details but I dont found what is the error...:
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 0
Date: 2006-12-07
Time: 16:42:03
User: N/A
Computer: MINGEOPRUEBA
Description:
The description for Event ID ( 0 ) in Source ( ASP.NET 2.0.50727.0 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event:
UnhandledException logged by UnhandledExceptionModule.dll:
appId=/LM/W3SVC/1/Root/Mingeo_Predial
type=System.CannotUnloadAppDomainException
message=Error while unloading appdomain. (Exception from HRESULT: 0x80131015)
stack=
at System.AppDomain.Unload(AppDomain domain)
at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
.
EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 system.web, P5 2.0.0.0, P6 45063b0f, P7 5d7, P8 47, P9 system.cannotunloadappdomain, P10 NIL.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I dont know what is AppDomain but I dont use any of this appelation in my code. I realy need help!
Thank you very much.

aspnet_wp.exe is crashing.
winprock
15 minutes is way above and beyond any reasonable timeout for HTTP. What you are experiencing here is that IIS believes that your process hangs and forcibly kills the application domain.
What you should do instead is create a sessionful service that allows you to send a job to the server for processing asynchronously and allows the client to poll for the completion status and subsequently allows the client to come back. This is the same scenario as discussed in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1007699&SiteID=1