Création d'un nouveau répertoire XYZ dans IIS 7.0. Copié web.config, Service.cs et Service.svc dans le répertoire. Maintenant sur la navigation http://www.mydomain.com/XYZ/Service.svc je reçois une «500 erreur de serveur interne».Déploiement d'un service WCF simple sur un serveur Web
Voici le fichier web.cofig.
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
Je pense qu'il pourrait y avoir un problème avec le fichier de configuration, mais le service fonctionne assez bien sur la machine locale.