Bonjour,
Je suis présentement en train de développer une application windows form 2 en VS 2005 qui utilise un service web asp.net. J'ai une erreur depuis toujours, mais elle est intermitante (w3wp.exe se ferme en donnant un code d'erreur). Je ne sais pas comment intercepter cette erreur et l'interpreter. Je sais que c'est une erreur non géré, c'est pourquoi j'ai mis en fonction la dll UnhandledExceptionModule qui devrait donner plus d'information.
En gros, l'application client appel des fonction sur un service web situé sur un autre serveur. C'est fonction retourne un code true ou false tout dépendament si l'écécution c'est bien déroulée. Le processus dure en moyenne 20 minutes et ils sont appeler en mode ASynch. J'utilise un handle pour récupérer la réponse du serveur.
J'obtient cette erreur du côté client :
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)
J'obtien cette erreur du côté serveur, dans le journal des evenement application:
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.
Je ne sais pas à quoi serve le AppDomain, mais je ne fais pas appel à ce code dans le service.vb
J'ai vraiment besoin d'aide, j'ai épuiser ma banque de données!
Merci énormément.
Partager