<?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 : Roles not populated on client.</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Roles not populated on client.</description>
  <pubDate>Mon, 13 Apr 2026 02:36:38 -700</pubDate>
  <lastBuildDate>Wed, 30 Nov 2011 05:06:04 -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=3110</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>Roles not populated on client. : OK thanks, this is working now....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3110&amp;PID=12138#12138</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3110<br /><strong>Posted:</strong> 30-Nov-2011 at 5:06am<br /><br />OK thanks, this is working now.]]>
   </description>
   <pubDate>Wed, 30 Nov 2011 05:06:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3110&amp;PID=12138#12138</guid>
  </item> 
  <item>
   <title>Roles not populated on client. : Hi Greg;Are you using the UserBase...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3110&amp;PID=12137#12137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3110<br /><strong>Posted:</strong> 29-Nov-2011 at 6:32pm<br /><br />Hi Greg;<div><br></div><div>Are you using the UserBase class (DevForce's Default IPrincipal implementation)? This class will serialize the roles back to the client.</div><div><br></div><div>If you have a custom IPrincipal implementation instead, you need to make sure that the roles are serialized as part of the data contract.</div>]]>
   </description>
   <pubDate>Tue, 29 Nov 2011 18:32:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3110&amp;PID=12137#12137</guid>
  </item> 
  <item>
   <title>Roles not populated on client. : On the client, I am trying to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3110&amp;PID=12115#12115</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 3110<br /><strong>Posted:</strong> 24-Nov-2011 at 6:10am<br /><br />On the client, I am trying to determine if a user is in a particular role.<br /><br />In web.config,  &lt;roleManager enabled="true" /&gt;.<br /><br />The ASPNet.db has a role created and a user is assigned the role.<br /><br />If I open up ASPNet Configuration in Visual Studio, it shows the user, the role, and the user being in the role.  So it is set up correctly.<br /><br />I then log in as that user.<br /><br />In the LoggedIn event, I check to see if the user is in a role:<br /><br />bool isInRole = AuthenticationManager.Current.User.IsInRole("EmailAdmin");<br /><br />However, this always returns false.  In looking at User.Roles, it is always empty.  However, it does show the correct user.<br /><br />Any idea what's up?<br /><br />Greg<span style="font-size:10px"><br /><br />Edited by gregweb - 24-Nov-2011 at 6:15am</span>]]>
   </description>
   <pubDate>Thu, 24 Nov 2011 06:10:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3110&amp;PID=12115#12115</guid>
  </item> 
 </channel>
</rss>