我的配置文件中包含以下代码:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IDataInterface" maxReceivedMessageSize="2147483647" closeTimeout="02:00:00"
openTimeout="02:00:00" sendTimeout="02:00:00" receiveTimeout="02:00:00" />
<readerQuotas maxDepth="128" maxStringContentLength="8388608" maxArrayLength="2147483646" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://todwebprod.conedison.net:8002/DataInterface.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IDataInterface"
contract="IDataInterface" name="BasicHttpBinding_IDataInterface" />
</client>
</system.serviceModel>
但我收到此错误:
堆栈跟踪-System.Configuration.ConfigurationErrorsException:无法识别的元素“ readerQuotas”。
我不确定我哪里出错了。我以为我做对了...有人能指出我正确的方向吗?这是新手。...
谢谢!