Modify the system.serviceModel node in the Web.config file
to the following:
<system.serviceModel>
<services>
<service
name="ThirdService.ThirdService"
behaviorConfiguration="IISHost.Service1Behavior">
<!-- Service
Endpoints -->
<endpoint
address=""
binding="wsHttpBinding"
contract="ThirdCommon.IThirdService">
<!--
Upon deployment, the following identity element
should be removed or replaced to reflect the
identity under which the deployed service runs. If
removed, WCF will infer an appropriate identity
automatically.
-->
<identity>
<dns
value="localhost"/>
</identity>
</endpoint>
<endpoint
address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior
name="IISHost.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>
</behaviors>
</system.serviceModel>