E
EagleRed
I have setup a custom membership provider for an ASP.NET 2.0 application as
follows:
<connectionStrings>
<add name="MyDB" connectionString="Data Source=localhost;
user id=myAppLogon;
password=pppwwwddd;Initial Catalog=MyAppDB"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<authentication mode="Forms" />
<membership defaultProvider="myAppProvider">
<providers>
<add name="myAppProvider" connectionStringName="MyDB"
...
type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>
</system.web>
I created MyAppDB using the aspnet_regsql utility and added some tables that
have some relations with the tables it created. All has worked fine to this
point.
I now want to add roles. I went into the WAT and enabled roles. It added a
roleManager line to the web.config file as follows.
<system.web>
<authentication mode="Forms" />
<roleManager enabled="true" />
<membership defaultProvider="myAppProvider">
<providers>
<add name="myAppProvider" connectionStringName="MyDB"
...
type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>
</system.web>
I edited it to read,
<roleManager enabled="true" defaultProvider="myAppProvider" />
I added some roles which did not appear in MyAppDB and I cannot edit or
manager users. The error says it cannot find the provider. What happen? How
can it be fixed?
As always, any help would be appreciated.
follows:
<connectionStrings>
<add name="MyDB" connectionString="Data Source=localhost;
user id=myAppLogon;
password=pppwwwddd;Initial Catalog=MyAppDB"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<authentication mode="Forms" />
<membership defaultProvider="myAppProvider">
<providers>
<add name="myAppProvider" connectionStringName="MyDB"
...
type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>
</system.web>
I created MyAppDB using the aspnet_regsql utility and added some tables that
have some relations with the tables it created. All has worked fine to this
point.
I now want to add roles. I went into the WAT and enabled roles. It added a
roleManager line to the web.config file as follows.
<system.web>
<authentication mode="Forms" />
<roleManager enabled="true" />
<membership defaultProvider="myAppProvider">
<providers>
<add name="myAppProvider" connectionStringName="MyDB"
...
type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>
</system.web>
I edited it to read,
<roleManager enabled="true" defaultProvider="myAppProvider" />
I added some roles which did not appear in MyAppDB and I cannot edit or
manager users. The error says it cannot find the provider. What happen? How
can it be fixed?
As always, any help would be appreciated.