Click here to Skip to main content
15,915,975 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 19-Jan-12 16:50pm
v2
Comments
Abey Thomas 19-Jan-12 23:16pm    
are you able to ping the production machine with its DNS name rather than the ip address? just trying to take a few steps back to see if the problem is outside the context of WCF environment..

1 solution

You can add your host name in the host file located in C:\WINDOWS\system32\drivers\etc
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900