Ошибка нераспознанного элемента readerQuotas - PullRequest
0 голосов
/ 24 октября 2019

У меня есть этот код в моем конфигурационном файле:

<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>

, но я получаю эту ошибку:

Stack Trace - System.Configuration.ConfigurationErrorsException: нераспознанный элемент'readerQuotas'.

Я не уверен, где я ошибся. Я думал, что сделал это правильно ... Кто-нибудь может указать мне правильное направление, пожалуйста? Новое в этом ....

Спасибо!

...