درود بر شما دوستان.موقع ران کردن wcf این خطا را می دهد.
Service 'Service' has zero application (non-infrastructure) endpoints. This might be because no conf
اینک کد سورس web.config من هستش. خواهش می کنم اگه می تونید کمکم کنید.این خطا رو رفع کنم.


<system.serviceModel>


<services>
<service name="WCFService4.Service" behaviorConfiguration="ServiceBehavior">
<endpoint contract="WCFService2.IService" binding="basicHttpBinding"
bindingConfiguration="Binding1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"></endpoint>
<host>
<baseAddresses>
<add baseAddress="http://myAddress/"/>
</baseAddresses>
</host>

</service>

</services>


<bindings>

<basicHttpBinding >
<binding name="Binding1" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:02:00" sendTimeout="00:02:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="100000" maxBufferPoolSize="524288"
maxReceivedMessageSize="100000"
messageEncoding="Text" textEncoding="utf-8"
transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32"
maxStringContentLength="8192" maxArrayLength="25000"
maxBytesPerRead="4096" maxNameTableCharCount="16384"/>



<!--<security mode="Transport"/>-->
</binding>
</basicHttpBinding>
</bindings>

<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<!-- 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="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
<baseAddressPrefixFilters>
<add prefix="http://myAddress/"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>


</system.serviceModel>