2010-08-15 3 views
0

이상한 문제가 있습니다. 콘솔 응용 프로그램에서 wcf를 호스팅하고 있습니다. 이제 3 개 모두를 실행 해 보았습니다. 7 번 창을 모두 실행했는데, 서버 (Windows 서버 2008) 그것 doesnt 일, 지금 내가 방화벽과 everythings을 확인, 내가 얼마나 열심히 노력했는지 상관 없어, 이건 서버 2008과 뭐든지 관련이 있는지 모르겠다면 ...사람이있어 같은 문제?WCF Windows 서버 2008 년 문제

<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> 

클라이언트 구성 :

<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

"나던 일"을 정의하십시오. –

+0

나는 그것을 소비하지 않는다, 나는 그것에 접근 할 수 없다, 그것의 같은 서버 doesnt는 나에게 그것에 접근을 준다, 그것은 시간을 내었다 – Stacker

+0

당신은 우리에게 당신의 서버 설정과 당신의 클라이언트 설정을 보여줄 수 있습니까? 어떤 바인딩을 사용합니까? 어떤 보안 설정이 있습니까? 그 기계는 동일한 도메인의 일부입니까, 아니면 전혀 도메인입니까? –

답변

0

내가 그것을 작동 가지고

여기 내 서버 구성입니다!

시작> 관리 도구> 서버 관리자> 기능> 기능 추가> .netframwork 3.5> WCF 활성화!

감사합니다 모두