I use the drag and drop wizard control to create users. But to create roles I either used the web configuration site or the line Roles.CreateRole("name");
Why is it using one datastore for users and another for roles?
thanks
This is my web config file
<?xml version="1.0"?>
<configuration>
<system.web>
<authentication mode ="Forms">
<forms loginUrl="Default.aspx" name=".ASPXFORMSAUTH"></forms>
</authentication>
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="conString"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
</providers>
</membership>
<authorization>
</authorization>
<roleManager enabled="true" />
<compilation debug="false" targetFramework="4.0" />
<customErrors mode="Off"/>
</system.web>
<connectionStrings>
<add name ="conString"
connectionString ="Data source=DELLXPS\SQLEXPRESS; Initial Catalog=SEIN; Integrated Security=true;"
providerName =" System.Data.Sqlclient"/>
</connectionStrings>
</configuration>

New Topic/Question
Reply


MultiQuote


|