Configuring RIA to use roleManager, membership and profile.

Create Silverlight Project “Business Navingation application” in Visual Studio 2010 Beta 2 and configure SQL express database to generate schema for rolemanager, membership and profile feature using command

Launch Visual Studio Command prompt (Run as administrator)
Type command
Aspnet_regsql.exe –E–S sqlinstance–A rmp
This will create sql express database aspnetdb

Visit links to see how to configure components mentioned above

Configure Role Manager
Configure Membership Manager
Configure profile Manager

Edit web.config file as
<!– Connection to database (also used by rolemanager,membership manager and profile manager) –>
<add name=”SQLDataSource” connectionString=”Data Source= .SQLExpress;Initial Catalog=aspnetdb;Integrated Security=SSPI;” />
<!– Configure Role Manager (See :–>
<roleManager enabled=”true” defaultProvider=”SqlDataRoleProvider”>
<providers> <clear />
<add name=”SqlDataRoleProvider”
applicationName=” APPName ” />
<!– Configure Membership Manager (See :–>
<membership defaultProvider=”SqlDataMemberProvider” userIsOnlineTimeWindow=”1″>
<providers> <clear />
<add name=”SqlDataMemberProvider”
applicationName=” APPName “
passwordFormat=”Hashed” />

<!– Configure profile Manager (See :–>
<profile defaultProvider=”SqlDataProfileProvider”>
<add name=”FriendlyName”/>
<providers> <clear />
<add name=”SqlDataProfileProvider” type=”System.Web.Profile.SqlProfileProvider”
connectionStringName=”SQLDataSource” applicationName=”APPName” />

For more details please follow links mentioned in post

One thought on “Configuring RIA to use roleManager, membership and profile.

  1. I’ve been looking around and actually am impressed by the terrific content material here. I work the nightshift at my job and it really gets boring. I’ve been coming right here for the past couple nights and reading. I just needed to let you know that I’ve been enjoying what I have seen and I look forward to reading more.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s