|  | 分類:[.NET 全般]
 
 みなさん 何度同じ事をしているんですが?
 WPF側で、シリアル化ができないのエラーが出て開発できないのです。
 
 maxArrayLength="2147483647"この 値を変更すればよいと書いてあるんですが?
 最大配列長クォータが変更できないんです。
 
 なにか原因があれば教えて下さい。
 
 追加情報: メッセージ 操作 'xxxxx' の要求メッセージの本文をシリアル化解除しているときにエラーが発生しました。XML データの読み取り中に最大配列長クォータ (16384) を超えました。このクォータを増やすには、XML リーダーの作成時に使用される XmlDictionaryReaderQuotas オブジェクトの MaxArrayLength プロパティを変更してください。 行 1、位置 34265。 のシリアル化を解除しようとしているときに、フォーマッタから例外がスローされました
 
 configの内容
 
 <system.serviceModel>
 <bindings>
 <basicHttpBinding>
 <binding name="BasicHttpBinding_IService1" closeTimeout="00:01:00"
 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
 allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
 maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
 messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
 useDefaultWebProxy="true">
 <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
 maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
 <security mode="None">
 <transport clientCredentialType="None" proxyCredentialType="None"
 realm="" />
 <message clientCredentialType="UserName" algorithmSuite="Default" />
 </security>
 </binding>
 </basicHttpBinding>
 </bindings>
 <client>
 <endpoint address="http://localhost:49467/Service1.svc" binding="basicHttpBinding"
 bindingConfiguration="BasicHttpBinding_IService1" contract="IService1"
 name="BasicHttpBinding_IService1" />
 </client>
 <behaviors>
 <serviceBehaviors>
 <behavior name="ByteArrayServer.Service1Behavior">
 <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
 <serviceMetadata httpGetEnabled="true"/>
 <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
 <serviceDebug includeExceptionDetailInFaults="false"/>
 <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
 </behavior>
 </serviceBehaviors>
 </behaviors>
 </system.serviceModel>
 
 |