In our project we are using WCF service sometimes we are getting exception port is being used.I have searched for that all I found is error will come with duplex connection and have to use clientBaseAddress attribute as specified in this link
So Can anyone have idea how to resolve this for WSHttpBinding??
My app.config file code is as shown below.
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services>
<service behaviorConfiguration="MyStandardServiceBehave" name="Services.TestService">
<endpoint address="http://localhost:8080/TestService"
binding="wsHttpBinding" bindingConfiguration="standardServiceConfiguration"
contract="ServiceContracts.ICommonService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080/TestService" />
</baseAddresses>
</host>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="standardServiceConfiguration"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" >
<readerQuotas maxDepth="2147483647" maxBytesPerRead="2147483647"
maxArrayLength="2147483647" maxStringContentLength="2147483647" />
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="MyStandardServiceBehave">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="True"/>
</behavior>
</serviceBehaviors>
</behaviors>