views:

49

answers:

1

i have a weird problem, i have a wcf hosted in a Console Application now i tried it on 3 pcs all running windows 7 it worked fine, but when i take it to the server (windows server 2008) it doesnt work , now i checked firewall and everythings ,i cant seem to get it to work no matter how hard i tried , im not sure if this is has anything to do with server 2008 or what.... anyone got the same issue ?

here is my Server 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>
A: 

I got it working!

Start > administrative tools > server manager > features > add feature > .netframwork 3.5 > activate WCF!!!

thanks all

Stacker