I deployed a silverlight enabled WCF webservice on a cassini webserver and mapped it to the port 7799. when i call the service with the browser as Http://localhost:7799/xxx.svc then it works perfectly, but as soon as i switch over to use the real server IP address I get the following error:
[InvalidOperationException: No protocol binding matches the given address 'http://92.51.142.104:7799/CopsWcfService.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration.]
[ServiceActivationException: No protocol binding matches the given address 'http://92.51.142.104:7799/CopsWcfService.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration.]
System.ServiceModel.AsyncResult.End(IAsyncResult result) +460
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +456
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +276
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +586
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177
obvously something is wrong with the binding, but I don't get the reason. I did already try all possible combinations of host baseAddress / binding address combinations. does anybody has an idea how the binding is suposed to look for this case?
the important part of the web.config, that was actually mostly generated by visual studio looks as following:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="ch.pronux.cops.service.CopsWcfServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="customBinding0">
<binaryMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<services>
<service behaviorConfiguration="ch.pronux.cops.service.CopsWcfServiceBehavior"
name="ch.pronux.cops.service.CopsWcfService" address="CopsWcfService.svc">
<host>
<baseAddresses>
<add baseAddress="http://92.51.142.104:7799"/>
</baseAddresses>
</host>
<endpoint binding="customHttpBinding"
contract="ch.pronux.cops.service.CopsWcfService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>