2010-08-15 3 views
0

J'ai un problème étrange, j'ai un wcf hébergé dans une application de console maintenant je l'ai essayé sur 3 PC toutes les fenêtres en cours d'exécution 7 ça a bien fonctionné, mais quand je le prends au serveur 2008) il ne fonctionne pas, maintenant j'ai vérifié pare-feu et everythings, je ne peux pas sembler l'obtenir au travail peu importe comment dur j'ai essayé, je ne sais pas si cela a quelque chose à voir avec le serveur 2008 ou quoi ... le même problème?WCF Problème avec le serveur Windows 2008

Voici mon serveur Config:

<system.serviceModel> 
<services> 
    <service name="Gateway.Controllers.ClientController" behaviorConfiguration="serviceBehavior"> 
    <endpoint address="http://localhost:8000/ClientService" binding="basicHttpBinding" contract="Gateway.Controllers.IClientController" /> 
    <endpoint address="http://localhost:8000/ClientService/mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
    </service> 
    <service name="Gateway.Controllers.ServerController" behaviorConfiguration="serviceBehavior"> 
    <endpoint address="http://localhost:8000/ServerService" binding="basicHttpBinding" contract="Gateway.Controllers.IServerController" /> 
    <endpoint address="http://localhost:8000/ServerService/mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
    </service> 
    <service name="Gateway.Controllers.RoutingController" behaviorConfiguration="serviceBehavior"> 
    <endpoint address="http://localhost:8000/RoutingService" binding="basicHttpBinding" contract="Gateway.Controllers.IRoutingController" /> 
    <endpoint address="http://localhost:8000/RoutingService/mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
    </service> 
    <service name="Gateway.Controllers.LoggingController" behaviorConfiguration="serviceBehavior"> 
    <endpoint address="http://localhost:8000/LoggingService" binding="basicHttpBinding" contract="Gateway.Controllers.ILoggingController" /> 
    <endpoint address="http://localhost:8000/LoggingService/mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
    </service> 
</services> 
<behaviors> 
    <serviceBehaviors> 
    <behavior name="serviceBehavior"> 
     <serviceMetadata httpGetEnabled="false" /> 
     <serviceDebug includeExceptionDetailInFaults="true"/> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 

client Config:

<system.serviceModel> 
    <bindings> 
     <basicHttpBinding> 
      <binding name="BasicHttpBinding_ILoggingController" closeTimeout="00:01:00" 
       openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
       allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
       maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
       messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" 
       useDefaultWebProxy="true"> 
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
        maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
       <security mode="None"> 
        <transport clientCredentialType="None" proxyCredentialType="None" 
         realm="" /> 
        <message clientCredentialType="UserName" algorithmSuite="Default" /> 
       </security> 
      </binding> 
      <binding name="BasicHttpBinding_IRoutingController" closeTimeout="00:01:00" 
       openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
       allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
       maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
       messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" 
       useDefaultWebProxy="true"> 
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
        maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
       <security mode="None"> 
        <transport clientCredentialType="None" proxyCredentialType="None" 
         realm="" /> 
        <message clientCredentialType="UserName" algorithmSuite="Default" /> 
       </security> 
      </binding> 
      <binding name="BasicHttpBinding_IClientController" closeTimeout="00:01:00" 
       openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
       allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
       maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
       messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" 
       useDefaultWebProxy="true"> 
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
        maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
       <security mode="None"> 
        <transport clientCredentialType="None" proxyCredentialType="None" 
         realm="" /> 
        <message clientCredentialType="UserName" algorithmSuite="Default" /> 
       </security> 
      </binding> 
      <binding name="BasicHttpBinding_IServerController" closeTimeout="00:01:00" 
       openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
       allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
       maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
       messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" 
       useDefaultWebProxy="true"> 
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
        maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
       <security mode="None"> 
        <transport clientCredentialType="None" proxyCredentialType="None" 
         realm="" /> 
        <message clientCredentialType="UserName" algorithmSuite="Default" /> 
       </security> 
      </binding> 
     </basicHttpBinding> 
    </bindings> 
    <client> 
     <endpoint address="http://ServerIP:8000/LoggingService" binding="basicHttpBinding" 
      bindingConfiguration="BasicHttpBinding_ILoggingController" 
      contract="LoggingService.ILoggingController" name="BasicHttpBinding_ILoggingController" /> 
     <endpoint address="http://ServerIP:8000/RoutingService" binding="basicHttpBinding" 
      bindingConfiguration="BasicHttpBinding_IRoutingController" 
      contract="RoutingService.IRoutingController" name="BasicHttpBinding_IRoutingController" /> 
     <endpoint address="http://ServerIP:8000/ClientService" binding="basicHttpBinding" 
      bindingConfiguration="BasicHttpBinding_IClientController" 
      contract="ClientService.IClientController" name="BasicHttpBinding_IClientController" /> 
     <endpoint address="http://ServerIP:8000/ServerService" binding="basicHttpBinding" 
      bindingConfiguration="BasicHttpBinding_IServerController" 
      contract="ServerService.IServerController" name="BasicHttpBinding_IServerController" /> 
    </client> 
</system.serviceModel> 
+2

Définir "ne fonctionne pas". –

+0

je ne peux pas le consommer, je ne peux pas y accéder, son serveur comme ne me donne pas accès, il expire – Stacker

+0

Pouvez-vous nous montrer votre config de serveur et votre config de client s'il vous plaît? Quelles reliures utilisez-vous? Quels paramètres de sécurité? Est-ce que ces machines font partie du même domaine, ou pas du tout? –

Répondre

0

Je l'ai travail!

Démarrer> Outils d'administration> Gestionnaire de serveur> Fonctionnalités> Ajouter une fonctionnalité> .netframwork 3.5> Activer WCF !!!

merci à tous

Questions connexes