2012-11-15 86 views
1

我是WCF的新手,我有使用WCF服務作爲數據訪問層的Web應用程序。我正在使用wcf服務庫並在IIS7上託管它。對於幾個初始服務調用而言,它工作正常,但會掛起應用程序以獲取進一步請求當我重置IIS,然後再次它工作很好一段時間。 下面是Web應用程序的web.config中的服務配置使用WCF及時請求減慢Web應用程序

<system.serviceModel> 
<bindings> 
    <wsHttpBinding> 
    <binding name="WSHttpBinding_IRoaster" closeTimeout="00:10:00" 
     openTimeout="00:01:00" receiveTimeout="00:02:00" sendTimeout="00:03:00" 
     bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 
     maxBufferPoolSize="524288" maxReceivedMessageSize="199999488" 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="Message"> 
     <transport clientCredentialType="Windows" proxyCredentialType="None" 
      realm="" /> 
        <message clientCredentialType="Windows" negotiateServiceCredential="true" 
      algorithmSuite="Default" /> 
     </security> 
    </binding> 
    </wsHttpBinding> 
</bindings> 
<client> 
    <endpoint address="http://asdf.com/RoasterService/RoasterService.Roaster.svc" 
    binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IRoaster" 
    contract="RoasterService.IRoaster" name="WSHttpBinding_IRoaster"> 
    <identity> 
     <dns value="localhost" /> 
    </identity> 
    </endpoint> 
</client> 

有沒有,如果我評論的所有WCF調用然後虛值的應用程序工作正常。請建議適當的解決方案

回答