Chaque fois que je jette une exception dans mon service, une autre exception est levée juste après:Lancer une exception dans un service WCF jette un CommunicationException
System.ServiceModel.CommunicationException: There was an error reading from the
pipe: Unrecognized error 109 (0x6d). ---> System.IO.PipeException: There was an
error reading from the pipe: Unrecognized error 109 (0x6d).
Je suis en œuvre IErrorHandler je peux vous connecter (en utilisant log4net) toutes les exceptions non gérées:
bool IErrorHandler.HandleError(Exception error)
{
if (!(error is FaultException))
{
logger.Fatal("Unhandled Exception", error);
}
return false;
}
Une idée pourquoi est-ce?
Je revérifierais si le problème réside vraiment dans le gestionnaire. J'ai fait exactement la même chose. Le IErrorHandler est une approche valide en général, je dirais. – Alex