powered by simpleCommunicator - 2.0.40     © 2025 Programmizd 02
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / Получил ошибку The maximum array length quota (16384) has been exceeded while reading XML
4 сообщений из 4, страница 1 из 1
Получил ошибку The maximum array length quota (16384) has been exceeded while reading XML
    #39215847
Pavluha
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Полное описание ошибки:

The formatter threw an exception while trying to deserialize the message:
There was an error while trying to deserialize parameter http://tempuri.org/:attachments. The InnerException message was
'There was an error deserializing the object of type GMCS.Rosim.XRM.Domain.DTO.Integration.RequestAttachment[]. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 1502.'. Please see InnerException for more details.

Вот настройки Web.config:
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
<basicHttpBinding>
        <binding name="IMFCIntegration" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" >
          <readerQuotas maxDepth="32" maxStringContentLength="5242880" maxArrayLength="2147483646" maxBytesPerRead="4096" maxNameTableCharCount="5242880"/>
        </binding>
      </basicHttpBinding>
<client>
      <endpoint address="http://msk-x1-srv-biz2.lab.faugi.ru/GMCS.Rosim.XRM.Application.Services/Integration/MFCIntegration.svc"
                binding="basicHttpBinding" bindingConfiguration="IMFCIntegration" contract="ASPGIService.IMFCIntegration" name="IMFCIntegration" />
    </client>



Что нет так? Все же прописал, что можно получать большие сообщения.
Сервис не мой, я отправляю сообщения.
...
Рейтинг: 0 / 0
Получил ошибку The maximum array length quota (16384) has been exceeded while reading XML
    #39215914
Фотография Axeleron
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Pavluha, нужно объявить кастомный байндинг. Как-то так:
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
    <bindings>
        <customBinding>
            <binding name="MashCustomBinding"
                    closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
                <textMessageEncoding messageVersion="Soap11" maxReadPoolSize="2147483647" maxWritePoolSize="2147483647">
                    <readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" />
                </textMessageEncoding>
                <httpTransport transferMode="Streamed" maxReceivedMessageSize="2147483647"/>
            </binding>
        </customBinding>
    </bindings>
...
Рейтинг: 0 / 0
Получил ошибку The maximum array length quota (16384) has been exceeded while reading XML
    #39215916
Pavluha
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Axeleron,

Оказалось все проще, хозяева сервиса накосячили. Спасибо!
...
Рейтинг: 0 / 0
Получил ошибку The maximum array length quota (16384) has been exceeded while reading XML
    #39215929
Фотография Axeleron
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Pavluha, такое тоже бывает...
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / Получил ошибку The maximum array length quota (16384) has been exceeded while reading XML
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]