Bonjour,

j'ai développer un service , il ecoute le réseau 'System.Runtime.Remoting.Channels',
mes programmes communique dessus en passant par le réseau 'System.Runtime.Remoting.Channels'.
Ca fonctionne , sauf parfois quand je met en veille mon PC et que je le réveille ,
quand un de mes programme veux y accéder , le service crash avec l'erreur ci dessous :


Application*: myservice.exe
Version du Framework*: v4.0.30319
Description : le processus a été arrêté en raison d'une exception non gérée.
Informations sur l'exception*: System.Runtime.InteropServices.SEHException
à System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].PopulateMethods(Filter)
à System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetListByName(Char*, Int32, Byte*, Int32, MemberListType, CacheType)
à System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Populate(System.String, MemberListType, CacheType)
à System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetMemberList(MemberListType, System.String, CacheType)
à System.RuntimeType.GetMethodCandidates(System.String, System.Reflection.BindingFlags, System.Reflection.CallingConventions, System.Type[], Boolean)
à System.RuntimeType.GetMethodImpl(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[])
à System.Type.GetMethod(System.String, System.Reflection.BindingFlags)
à System.Runtime.Remoting.Messaging.MethodCall.ResolveMethod(Boolean)
à System.Runtime.Remoting.Messaging.MethodCall..ctor(System.Object, System.Runtime.Serialization.Formatters.Binary.BinaryMethodCallMessage)
à System.Runtime.Serialization.Formatters.Binary.BinaryMethodCall.ReadArray(System.Object[], System.Object)
à System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(System.Runtime.Remoting.Messaging.HeaderHandler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)
à System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)
à System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(System.String, System.IO.Stream, Boolean, System.Runtime.Serialization.Formatters.TypeFilterLevel)
à System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage ByRef, System.Runtime.Remoting.Channels.ITransportHeaders ByRef, System.IO.Stream ByRef)




Nom de l’application défaillante myservice.exe, version : 1.0.0.0, horodatage : 0x61c08a8a
Nom du module défaillant : mscorlib.ni.dll, version : 4.8.4470.0, horodatage : 0x61b730bd
Code d’exception : 0xc0000006
Décalage d’erreur : 0x00412606
ID du processus défaillant : 0x39ac
Heure de début de l’application défaillante : 0x01d82c78bf696cc3
Chemin d’accès de l’application défaillante : e:\bin\clientservice\myservice.exe
Chemin d’accès du module défaillant: C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\mscorlib\45cedc1e1f7c1e207ea61b42066b2e96\mscorlib.ni.dll
ID de rapport : 29d8470f-34c0-4232-b260-55c239a2d810
Nom complet du package défaillant*:
ID de l’application relative au package défaillant*:


Avez vous une solution ?

Merci