0
我有一個奇怪的問題,我有一個wcf託管在一個控制檯應用程序,現在我試過它在3個所有運行的Windows 7它工作正常,但是當我把它送到服務器(Windows服務器2008)它不工作,現在我檢查防火牆和萬物,我似乎無法讓它工作,無論我多麼努力,我不知道如果這是有什麼關係與服務器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>
定義「不工作」。 – 2010-08-15 07:05:25
我不能使用它,我無法訪問它,它的服務器不允許我訪問它,它超時 – Stacker 2010-08-15 07:18:14
你能告訴我們你的服務器配置和你的客戶端配置嗎?你使用什麼綁定?什麼安全設置?這些機器是同一個域的一部分,還是根本沒有域? – 2010-08-15 08:05:18