我有一個web.config
:C#WCF的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
部分,但我不知道該怎麼做。
可以粘貼你的web.config的節點? –
2013-03-07 10:04:46
嘗試顯示您的託管代碼 – 2013-03-07 10:10:45