Link to home
Start Free TrialLog in
Avatar of ahll
ahll

asked on

Problem with Membership/Roles

Hi friends,
Hi friends.

I have a website in a server and I'm using Memberships and Roles. I
needed to replicate that site in a different subdomain for development
purposes. I changed the Application Name in the new web.config to have
a separate set of users/roles in the same ASPNETDB database.
I created a simple page in wich I just add a new "Admin" role and add a user to it.
After I added this user to thes new site I'm not able to login.
I checked the ASPDBNET db and I found that the new Application is
properly created as well as the Role and the User tables have the references to the new Role ans User. The problem is that there is no record for this user in the Membership table so .Net did
not store any password or membership information at all for this user.

Any idea about why?

Please find the relevant section of the web.config attached.

Thanks in advance
<roleManager enabled="true" defaultProvider="MyAspNetSqlRoleProvider">
<providers>
<clear />
<add connectionStringName="LocalSqlServer"
applicationName="/showroom" name="MyAspNetSqlRoleProvider"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
 
<membership defaultProvider="MyAspNetSqlMembershipProvider">
<providers>
<clear />
<add name="MyAspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
requiresQuestionAndAnswer="false"
enablePasswordRetrieval="true"
enablePasswordReset="true"
passwordFormat="Clear"
connectionStringName="LocalSqlServer"
applicationName="/showroom"
/>
</providers>
</membership>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ahll
ahll

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ahll
ahll

ASKER

Admins...how can I have this question deleted and the points refunded?