<?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 : IIdGenerator implementation exception</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : IIdGenerator implementation exception</description>
  <pubDate>Mon, 20 Jul 2026 14:41:43 -700</pubDate>
  <lastBuildDate>Tue, 04 Jan 2011 10:21:20 -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=2414</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>IIdGenerator implementation exception : Hi tj62,  I&amp;#039;m glad you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9553#9553</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2414<br /><strong>Posted:</strong> 04-Jan-2011 at 10:21am<br /><br />Hi tj62,<DIV>&nbsp;</DIV><DIV>I'm glad you found the problem. (That would be fairly simple to spot in a sample)</DIV><DIV>&nbsp;</DIV><DIV>sbelini</DIV>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 10:21:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9553#9553</guid>
  </item> 
  <item>
   <title>IIdGenerator implementation exception : Ahh I found out what the problem...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9547#9547</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=508" rel="nofollow">tj62</a><br /><strong>Subject:</strong> 2414<br /><strong>Posted:</strong> 04-Jan-2011 at 4:04am<br /><br /><P>Ahh I found out what the problem was. I forgot to add the NumericIdGenerator as a linked class in the SilverLight project (DomainModelSL). After I did that the problem disappeard. </P><DIV>However I have som problems using IIdGenerator as&nbsp; "my old databas" has combined primary keys that have to apply to some strict rules becuase of old&nbsp;software systems that share the same database. I wish the GUID&nbsp;existed when they programmed that ancient stuff :-(&nbsp;<BR>I will start a new thread on that issue.</DIV>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 04:04:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9547#9547</guid>
  </item> 
  <item>
   <title>IIdGenerator implementation exception : It returns EntityCacheState Here...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9546#9546</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=508" rel="nofollow">tj62</a><br /><strong>Subject:</strong> 2414<br /><strong>Posted:</strong> 04-Jan-2011 at 1:34am<br /><br /><DIV>It returns&nbsp; <FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>EntityCacheState</FONT></FONT></FONT></DIV><DIV>Here are the last lines of the server method:</DIV><DIV><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><P>List</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>EntUser</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&gt; listEntUser = </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>new</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>List</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>EntUser</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&gt;();</P><P>listEntUser.Add(user);</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>return</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> eMgr.CacheStateManager.GetCacheState(listEntUser);</P></FONT></FONT></DIV><DIV>Where EntUser is an entity. There is a special reason for this method (no using LINQ from the client) that is to much to explain here.<BR><BR>Generating an example could be quite tricki so let us se first if this gives you any indication what the problem is.</DIV>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 01:34:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9546#9546</guid>
  </item> 
  <item>
   <title>IIdGenerator implementation exception : Hi tj62,  What are you passing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9532#9532</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2414<br /><strong>Posted:</strong> 03-Jan-2011 at 12:55pm<br /><br />Hi tj62,<DIV>&nbsp;</DIV><DIV>What are you passing to/returning from the invoked method?</DIV><DIV>&nbsp;</DIV><DIV>Can you upload a simple test case (agains NorthwindIB) reproducing the issue?</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Mon, 03 Jan 2011 12:55:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9532#9532</guid>
  </item> 
  <item>
   <title>IIdGenerator implementation exception : Well after getting this reply: ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9527#9527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=508" rel="nofollow">tj62</a><br /><strong>Subject:</strong> 2414<br /><strong>Posted:</strong> 03-Jan-2011 at 10:03am<br /><br />Well after getting this reply:<DIV>&nbsp; <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=1436&amp;PID=9524#9524" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=1436&amp;PID=9524#9524</A><BR>I upgraded to this new version of NumericIdGenerator, but still the same exception. </DIV><DIV>&nbsp;</DIV><DIV>So that did not help.</DIV>]]>
   </description>
   <pubDate>Mon, 03 Jan 2011 10:03:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9527#9527</guid>
  </item> 
  <item>
   <title>IIdGenerator implementation exception : I am trying to implement the IIdGenerator...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9526#9526</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=508" rel="nofollow">tj62</a><br /><strong>Subject:</strong> 2414<br /><strong>Posted:</strong> 03-Jan-2011 at 9:52am<br /><br />I am trying to implement the IIdGenerator using the&nbsp; NumericIdGenerator sample I found here:<DIV>&nbsp; <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=1436&amp;PID=9523#9523" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=1436&amp;PID=9523#9523</A></DIV><DIV>When I run my Silverlight app. after that I get this exception as a result of calling InvokeServerMethodAsync() that has nothing to do with generating IDs (but is called short after the connect/login process):<BR></DIV><DIV>Repository persistence operation failed; 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:InvokeServerMethodResult" target="_blank">http://ideablade.com/EntityModel:InvokeServerMethodResult</A>. The InnerException message was <BR>'Element 'http://ideablade.com/EntityModel:NextIdGenerator' contains data of the 'http://schemas.datacontract.org/2004/07/ServerModelC2Net:C2NetIdGenerator' data contract. The deserializer has no knowledge of any type that maps to this contract. Add the type corresponding to 'C2NetIdGenerator' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.'.&nbsp; Please see InnerException for more details.</DIV><DIV>&nbsp;</DIV><DIV>The only changes of importance I did to NumericIdGenerator was that I changed the namespace and it's name to C2NetIdGenerator and let IsApplicable() allways return true.</DIV><DIV>&nbsp;</DIV><DIV>Any Idea what is the solution to this?</DIV>]]>
   </description>
   <pubDate>Mon, 03 Jan 2011 09:52:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2414&amp;PID=9526#9526</guid>
  </item> 
 </channel>
</rss>