Monday, 23 June 2014

WebConfig of Hosted WCF Project

Always Open Project with Administrator.
...........................................................................

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
 
    <services>
      <service name="WCFService.Simple">
        <endpoint address="" binding="basicHttpBinding" contract="WCFService.ISimple">
       
        </endpoint>
        <endpoint address="" binding="netTcpBinding" contract="WCFService.ISimple">

        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

        <host>
          <baseAddresses>
            <add baseAddress="http://localhost/WCFService"/>
            <add baseAddress="net.tcp://localhost/WCFService/"/>
          </baseAddresses>
        </host>
     
     
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
          <serviceDebug includeExceptionDetailInFaults="False" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>



</configuration>

No comments:

Post a Comment