1
J'ai un service WCF qui peut être placé à la fois dans IIS7 et dans selfhost. Le fichier SVC ressemble à ceci:WCF hébergé non exécutant Factory (CustomHostServiceFactory)?
<%@ ServiceHost Language="C#" Debug="False" Service="MyApp.ServiceImplementation.MyAppClientService" Factory="MyApp.ServiceImplementation.CustomHostServiceFactory"%>
Le problème est que le CustomHostServiceFactory ne sera pas runned si le serivce est selfhosted? Y a-t-il un moyen de faire en sorte que cela fonctionne?
Lorsqu'il fonctionne à partir de IIS7, il fonctionne correctement.