I have a Silverlight application and want to use RIA services to retrieve some data from the login account. I have added the following method to the AuthenticationDomainService class:
public string getRoles()
string usr = Membership.GetUser().UserName;
string rol = Roles.GetRolesForUser(usr);
which however gives the build error
Type 'String' is not a valid entity type. Entity types cannot be a primitive type or a simple type like string or Guid.
How can I correct this?
Is there a better way to work with the user data from Silverlight?