У меня странная проблема, у меня есть wcf, размещенный в консольном приложении, теперь я попробовал его на 3 компьютерах, работающих под управлением Windows 7, он работал нормально, но когда я переносил его на сервер (windows server 2008), он не работал теперь я проверил брандмауэр и все остальное, кажется, я не могу заставить его работать независимо от того, как сильно я пытался, я не уверен, имеет ли это какое-либо отношение к серверу 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>