2
我有一个wcf REST服务的web.config文件的最近更改,我刚刚为其添加maxBufferSize="10485760"
属性。请在下面找到以下代码段:配置错误:无法识别的属性'maxBufferSize'
<wsHttpBinding>
<binding name="WSHttpBinding_IService" closeTimeout="00:04:00"
openTimeout="00:04:00" receiveTimeout="00:04:00" sendTimeout="00:04:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode=
"StrongWildcard" maxBufferSize="10485760" maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:04:00" enabled="false" />
</binding>
</wsHttpBinding>
做出该更改后,应用程序不工作,抛出以下异常。
配置错误描述:处理服务此请求所需的配置文件时发生错误。 请查看下面的具体错误细节,并适当修改您的 配置文件。解析器错误消息:无法识别 属性'maxBufferSize'。请注意属性名称是 区分大小写。
如果任何人都可以提供帮助,那就太好了。