We have hosted a WCF service for a Silverlight Application for following configuration -
<pre lang="HTML"><services>
<service behaviorConfiguration="defaultServiceBehavior" name="FauchierPartners.NewUnits.DataService.CrossDomainService">
<endpoint address="" behaviorConfiguration="webHttpBehavior" binding="webHttpBinding" contract="FauchierPartners.NewUnits.DataService.ICrossDomainService">
<!--<identity>
<dns value="10.0.0.85"/>
</identity>-->
</endpoint>
<host>
<baseAddresses>
<add baseAddress="http://10.0.0.85:8735/"/>
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="defaultServiceBehavior" name="FauchierPartners.NewUnits.DataService.NewUnitsDataService">
<!--<endpoint address="" binding="wsHttpBinding" contract="FauchierPartners.NewUnits.DataService.INewUnitsDataService">-->
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="winAuthBasicHttpBinding" contract="FauchierPartners.NewUnits.DataService.INewUnitsDataService">
<!--<identity>
<dns value="10.0.0.85"/>
</identity>-->
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="http://10.0.0.85:8735/NewUnitsDataService/"/>
</baseAddresses>
</host>
</service>
</services></pre>
And same, IP address and port number is configured in my Silverlight xap file, specifying the address where this service is hosted, in ServiceReferences.ClientConfig
Currently, if you can see we have configured using the IP Address of the Production Machine
However, this needs to be changed, whereby IP Address needs to be replaced by the DNS name or simply the Machine Name of the host where service is deployed.
I tried doing so, but I got an error saying, unable to resolve host name.
Can someone you please throw light on this, as to what would be the possible solution?