Hello,
Please help me on this issue,
I have created a WCF server and trying to use this in C# asp .net website available on same machine.
However in SCF service we.config It has default endpoint address with 'localhost'. I just want to replace this with IP address of machine so that client app from diff machine can also call this service.
Here is my Webservice config file..
------------------------------------------------------
<system.serviceModel>
<services>
<service behaviorConfiguration="PriceServer.Service1Behavior"
name="PriceServer.PriceService">
<endpoint address="http://localhost:50161/PriceService.svc" behaviorConfiguration=""
binding="mexHttpBinding" bindingConfiguration="" contract="PriceServer.IPriceService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="PriceServer.Service1Behavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
<!-- Adding to enable the calling from client side-->
<endpointBehaviors>
<behavior name="ServiceAspNetAjaxBehavior">
<enableWebScript/>
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<!-- Adding to enable the calling from client side-->
<!-- </behaviors>-->
</system.serviceModel>
thanks