<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Xml Error Deserializing Object from BOS</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Xml Error Deserializing Object from BOS</description>
  <pubDate>Sat, 11 Apr 2026 11:58:30 -700</pubDate>
  <lastBuildDate>Tue, 08 Apr 2008 13:18:54 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=746</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Xml Error Deserializing Object from BOS : Here&amp;#039;s a sample for the client...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2789#2789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 746<br /><strong>Posted:</strong> 08-Apr-2008 at 1:18pm<br /><br />Here's a sample for the client side.&nbsp; The configuration information on the two sides needs to agree, so that the communications channel can be opened and data sent and received correctly.&nbsp; <DIV>&nbsp;</DIV><DIV>You have the same options for placement of the serviceModel and ideaBlade.v4 sections as with the server.</DIV><DIV>&nbsp;</DIV><DIV>&lt;?xml version="1.0" encoding="utf-8"?&gt;</DIV><DIV>&lt;!-- Sample client-side configuration, showing defaults --&gt;<BR>&lt;configuration&gt;<BR>&nbsp;&lt;system.serviceModel&gt;<BR>&nbsp;&nbsp;&lt;client&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;endpoint name="EntityService" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address="<a href="http://localhost:9009/EntityService" target="_blank">http://localhost:9009/EntityService</A>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; binding="customBinding" bindingConfiguration="compressedBinaryBinding"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contract="IdeaBlade.EntityModel.v4.IEntityServiceContract" <BR>&nbsp;&nbsp;&nbsp;&nbsp;/&gt;</DIV><DIV>&nbsp;&nbsp;&nbsp; &lt;!-- One EntityServer endpoint per data source extension --&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;endpoint name="EntityServer" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address="<a href="http://localhost:9009/EntityServer" target="_blank">http://localhost:9009/EntityServer</A>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; binding="customBinding" bindingConfiguration="compressedBinaryBinding"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contract="IdeaBlade.EntityModel.v4.IEntityServerContract" <BR>&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<BR>&nbsp;&nbsp;&lt;/client&gt;</DIV><DIV>&nbsp;&nbsp;&nbsp; &lt;bindings&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;customBinding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;binding name="compressedBinaryBinding"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gzipMessageEncoding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;readerQuotas maxArrayLength="2147483647" maxDepth="2147483647"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gzipMessageEncoding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;httpTransport maxReceivedMessageSize="2147483647"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/binding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/customBinding&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/bindings&gt;</DIV><DIV>&nbsp;&nbsp;&nbsp; &lt;extensions&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bindingElementExtensions&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name="gzipMessageEncoding" type="IdeaBlade.Util.Wcf.Extensions.v4.GZipMessageEncodingElement, IdeaBlade.Util.v4"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/bindingElementExtensions&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extensions&gt;</DIV><DIV>&nbsp; &lt;/system.serviceModel&gt;<BR>&lt;/configuration&gt;<BR></DIV>]]>
   </description>
   <pubDate>Tue, 08 Apr 2008 13:18:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2789#2789</guid>
  </item> 
  <item>
   <title>Xml Error Deserializing Object from BOS : Here&amp;#039;s a sample serviceModel...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2788#2788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 746<br /><strong>Posted:</strong> 08-Apr-2008 at 1:14pm<br /><br /><DIV>Here's a sample serviceModel configuration section for the server.&nbsp; You can place the section in the exe's config file, or the app.config embedded in the AppHelper project.&nbsp;&nbsp;The ideaBlade.v4 configuration section is still needed, although the objectServer element will be ignored.&nbsp; The serviceModel and ideaBlade.v4 sections do not need to be in the same config file.&nbsp; So, for example, you could place the serviceModel section in a ServerConsole.v4.exe.config file, and leave the ideaBlade.v4 section in the AppHelper project.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&lt;?xml version="1.0" encoding="utf-8"?&gt;</DIV><P>&lt;!-- Sample server-side configuration, showing defaults --&gt;<BR>&lt;configuration&gt;</P><P>&nbsp; &lt;system.serviceModel&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;services&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;service name="EntityService"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;endpoint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address="<a href="http://localhost:9009/EntityService" target="_blank">http://localhost:9009/EntityService</A>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding="customBinding" bindingConfiguration="compressedBinaryBinding"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contract="IdeaBlade.EntityModel.v4.IEntityServiceContract" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/service&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- One EntityServer service per data source extension --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;service name="EntityServer"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;endpoint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address="<a href="http://localhost:9009/EntityServer" target="_blank">http://localhost:9009/EntityServer</A>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding="customBinding" bindingConfiguration="compressedBinaryBinding"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contract="IdeaBlade.EntityModel.v4.IEntityServerContract" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/service&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/services&gt;</P><P>&nbsp;&nbsp;&nbsp; &lt;bindings&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;customBinding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;binding name="compressedBinaryBinding"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gzipMessageEncoding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;readerQuotas maxArrayLength="2147483647" maxDepth="2147483647" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gzipMessageEncoding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;httpTransport maxReceivedMessageSize="2147483647"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/binding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/customBinding&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/bindings&gt;</P><P>&nbsp;&nbsp;&nbsp; &lt;extensions&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bindingElementExtensions&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name="gzipMessageEncoding" type="IdeaBlade.Util.Wcf.Extensions.v4.GZipMessageEncodingElement, IdeaBlade.Util.v4"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/bindingElementExtensions&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extensions&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp; &lt;/system.serviceModel&gt;</P><P>&lt;/configuration&gt;</P>]]>
   </description>
   <pubDate>Tue, 08 Apr 2008 13:14:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2788#2788</guid>
  </item> 
  <item>
   <title>Xml Error Deserializing Object from BOS : We are currently using the Console...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2785#2785</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=275" rel="nofollow">danielp37</a><br /><strong>Subject:</strong> 746<br /><strong>Posted:</strong> 08-Apr-2008 at 11:02am<br /><br />We are currently using the Console BOS and plan on using the Service BOS so I would need to make these changes in the system.ServiceModel configuration section and would appreciate a sample.]]>
   </description>
   <pubDate>Tue, 08 Apr 2008 11:02:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2785#2785</guid>
  </item> 
  <item>
   <title>Xml Error Deserializing Object from BOS : First, I&amp;#039;m sorry for the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2783#2783</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 746<br /><strong>Posted:</strong> 08-Apr-2008 at 9:57am<br /><br />First, I'm sorry for the late reply, but I somehow missed this and a few other posts.<DIV></DIV><DIV>&nbsp;</DIV><DIV>For the "standard" BOS configuration - one that uses only the DevForce section config settings or the web.config sample we've provided - we set various quotas to maximum values.&nbsp; Unfortunately, the MaxStringContentLength ReaderQuota is not something we currently set, but I've opened a bug report to address this.</DIV><DIV>&nbsp;</DIV><DIV>The&nbsp;workaround is to change the reader quotas on the binding via the config file.&nbsp; If you're hosting your BOS in IIS, this is easy to do, since the system.ServiceModel configuration section is defined in the web.config.&nbsp;&nbsp;If you're hosting in either the console or service applications provided with DevForce, this is a little harder since you're probably not using a serviceModel configuration section.&nbsp; I can provide a sample upon request.</DIV><DIV>&nbsp;</DIV><DIV>Here's the binding change:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; &lt;bindings&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;customBinding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;binding name="compressedBinaryBinding"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gzipMessageEncoding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;readerQuotas </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxArrayLength="2147483647" maxDepth="2147483647" </DIV><DIV><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxStringContentLength="<EM>your limit</EM>"</strong></DIV><DIV><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong>/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gzipMessageEncoding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;httpTransport maxReceivedMessageSize="2147483647"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/binding&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/customBinding&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/bindings&gt;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 08 Apr 2008 09:57:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2783#2783</guid>
  </item> 
  <item>
   <title>Xml Error Deserializing Object from BOS : I received the following exception...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2753#2753</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=275" rel="nofollow">danielp37</a><br /><strong>Subject:</strong> 746<br /><strong>Posted:</strong> 27-Mar-2008 at 9:43pm<br /><br /><P>I received the following exception when trying to execute a query through the BOS:</P><P>EntityServerException:</P><P>The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter <a href="http://ideablade.com/EntityModel:FetchResult" target="_blank">http://ideablade.com/EntityModel:FetchResult</A>. The InnerException message was 'There was an error deserializing the object . The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader.'.&nbsp; Please see InnerException for more details.</P><DIV></DIV><DIV></DIV>The Query looks like this:<DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>var</FONT></FONT><FONT size=2> member = dataset.ExecuteQueryForEntity&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Member</FONT></FONT><FONT size=2>&gt;((</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>from</FONT></FONT><FONT size=2> mem </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>in</FONT></FONT><FONT size=2> dataset.Members</P><P></P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; where</FONT></FONT><FONT size=2> mem.MemberId == </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"754402"</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; select</FONT></FONT><FONT size=2> mem).Include(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"ActualCoverages"</FONT></FONT><FONT size=2>)</P><P>&nbsp;&nbsp;&nbsp; .Include(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Subaccounts"</FONT></FONT><FONT size=2>)</P><P>&nbsp;&nbsp;&nbsp; .Include(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Subaccounts.TransferLines"</FONT></FONT><FONT size=2>)</P><P>&nbsp;&nbsp;&nbsp; .Include(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Subaccounts.TransferLines.Payment"</FONT></FONT><FONT size=2>));</P><DIV></DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>I tried running the query without the .Includes on it and still got the exception, except that instead of getting it when the query was executed, I got it when it tried loading a specific Payment.&nbsp; The Payment object has an ntext column on it that is over 23,000 bytes long.&nbsp; Could this be what's causing the exception?</DIV><DIV>&nbsp;</DIV><DIV>When I remove this column, the query works.&nbsp; Should this be a limitation of the BOS?</FONT></DIV>]]>
   </description>
   <pubDate>Thu, 27 Mar 2008 21:43:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=746&amp;PID=2753#2753</guid>
  </item> 
 </channel>
</rss>