C#WCF web.config

C#WCF web.config,c#,wcf,web-config,C#,Wcf,Web Config,我有一个web.config: <?xml version="1.0"?> <configuration> <system.web> <authentication mode="Windows"/> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <

我有一个
web.config

<?xml version="1.0"?>
<configuration>
  <system.web>
    <authentication mode="Windows"/>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <bindings>
      <customBinding>
        <binding name="InstantMessagingBinding" closeTimeout="00:10:00">
          <textMessageEncoding>
            <readerQuotas maxStringContentLength="200000" maxArrayLength="200000" />
          </textMessageEncoding>
          <httpTransport keepAliveEnabled="false" maxReceivedMessageSize="200000" authenticationScheme="Ntlm"/>
        </binding>
      </customBinding>
    </bindings>
    ...
  </system.serviceModel>
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>  
</configuration>

...
我希望我的服务从此文件读取
closeTimeOut

我知道如何阅读
AppSetting
部分,但我不知道如何在这里阅读

查看此问题:

您可以使用Session.Timeout来了解超时值

请看下面的链接,这将帮助您理解


或者您可以设置信息应用程序设置并访问它

您可以粘贴web.config的节点吗?尝试显示托管代码