gokhan c

gokhan c

  • NA
  • 1
  • 1.2k

WCF hekp me

Sep 28 2014 5:53 AM
Hi, I'm new to WCF. I am getting the following error when calling the service.
"The underlying connection was closed A connection that was expected to be kept alive was closed in by the server"
 
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IStock" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
<!--<security mode="Transport">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
<message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true"/>
</security>-->
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/SkyBusinessWCF/SkyMaster.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IStock" contract="SkyMasterWS.ISkyMaster" name="WSHttpBinding_IStock">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
</client>
</system.serviceModel>
 
client config
 
<system.serviceModel>
 
 
 
 
<services>
<service behaviorConfiguration="Gatewayservisibehavior" name="SkyBusinessWCF.SkyMaster">
<endpoint address="http://localhost/SkyBusinessWCF/SkyMaster.svc" binding="wsHttpBinding" contract="SkyBusinessWCF.ISkyMaster">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Gatewayservisibehavior">
<!-- 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 -->
<dataContractSerializer maxItemsInObjectGraph="6553500"/>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
 
 please help me :/

Answers (2)