<?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 : IEntityLoginManager Serialization Issues</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : IEntityLoginManager Serialization Issues</description>
  <pubDate>Tue, 21 Apr 2026 22:13:12 -700</pubDate>
  <lastBuildDate>Fri, 30 Jul 2010 10:30:23 -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=1936</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>IEntityLoginManager Serialization Issues : There&amp;#039;s a snippet here, along...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7933#7933</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> 1936<br /><strong>Posted:</strong> 30-Jul-2010 at 10:30am<br /><br />There's a snippet here, along with more information &nbsp;- <DIV><a href="http://www.ideablade.com:8989/xwiki/bin/view/&#068;ocumentati&#111;n/Security#HImplementingIEntityLoginManager" target="_blank">http://www.ideablade.com:8989/xwiki/bin/view/Documentation/Security#HImplementingIEntityLoginManager</A></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 30 Jul 2010 10:30:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7933#7933</guid>
  </item> 
  <item>
   <title>IEntityLoginManager Serialization Issues : Any chance you could post a sample...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7921#7921</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=747" rel="nofollow">mlens</a><br /><strong>Subject:</strong> 1936<br /><strong>Posted:</strong> 29-Jul-2010 at 5:23pm<br /><br />Any chance you could post a sample implementation of the LoginManager under DevForce 2010? It's really confusing when you say GenericPrincipal and GenericIdentity are no longer supported but the login method of IEntityLoginManager returns IPrincipal....<br><br>Thanks<br>]]>
   </description>
   <pubDate>Thu, 29 Jul 2010 17:23:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7921#7921</guid>
  </item> 
  <item>
   <title>IEntityLoginManager Serialization Issues : GenericPrincipal and GenericIdentity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7514#7514</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> 1936<br /><strong>Posted:</strong> 04-Jul-2010 at 6:01pm<br /><br />GenericPrincipal and GenericIdentity are not types intrinsic to Silverlight.&nbsp; In DevForce Silverlight 2009 we did define these types within the DF assemblies, but we dropped this in DF 2010.&nbsp; (GenericPrincipal and GenericIdentity are still available in standard .NET - <a href="http://msdn.microsoft.com/en-us/library/system.security.principal.genericprincipal.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/system.security.principal.genericprincipal.aspx</A>.)&nbsp; <DIV>&nbsp;</DIV><DIV>You can return any type implementing IPrincipal from an IEntityLoginManager, as long as it's defined on both client and server.</DIV>]]>
   </description>
   <pubDate>Sun, 04 Jul 2010 18:01:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7514#7514</guid>
  </item> 
  <item>
   <title>IEntityLoginManager Serialization Issues : Wemade a change to the IEntityLoginManager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7504#7504</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1936<br /><strong>Posted:</strong> 02-Jul-2010 at 8:26pm<br /><br /><P>We&nbsp;made a change to the IEntityLoginManager in DevForce 2010 (this was buried on page 28 of the Release Notes).&nbsp; You should now be returning a UserBase&nbsp;or your own IPrincipal.&nbsp; As Kim writes below, GenericPrincipal and GenericIdentity are not native to Silverlight and we no longer define them.</P><DIV>If you subclass from UserBase make sure to mark any properties you need on the client with the &#091;DataMember&#093; attribute so they will serialize.</DIV><DIV>&nbsp;</DIV><DIV>If you implement your own IPrinicpal, you can make it serializable by doing the following:</DIV><OL><LI>Have the class "implement" the IKnownType interface.&nbsp; (This is a marker interface, so no actual implementation is required.)</LI><LI>Mark the class with the &#091;DataContract&#093; attribute</LI><LI>Mark each serializable property with the &#091;DataMember&#093; attribute.</LI></OL><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by ting - 09-Jul-2010 at 5:19pm</span>]]>
   </description>
   <pubDate>Fri, 02 Jul 2010 20:26:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7504#7504</guid>
  </item> 
  <item>
   <title>IEntityLoginManager Serialization Issues : We are working on upgrading to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7498#7498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 1936<br /><strong>Posted:</strong> 02-Jul-2010 at 9:39am<br /><br /><DIV>We are working on upgrading to DevForce 2010. Our IEntityLoginManager worked fine in 2009 and I expect is not the issue here but I am at a loss at what IS causing the issue. Please advise.</DIV><DIV>&nbsp;</DIV><DIV>"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:LoginResult" target="_blank">http://ideablade.com/EntityModel:LoginResult</A>. The InnerException message was 'Element 'http://ideablade.com/EntityModel:Principal' contains data of the 'http://schemas.datacontract.org/2004/07/System.Security.Principal:GenericPrincipal' data contract. The deserializer has no knowledge of any type that maps to this contract. Add the type corresponding to 'GenericPrincipal' 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>]]>
   </description>
   <pubDate>Fri, 02 Jul 2010 09:39:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1936&amp;PID=7498#7498</guid>
  </item> 
 </channel>
</rss>