Membership and Roles not working when application is deployed
- From: "@ndyB" <abryan@xxxxxxxxxxxxx>
- Date: Tue, 19 Feb 2008 16:58:28 -0000
Hi there all, I hope someone can help me out because I'm still a little new to all this.
I'm trying to create a very simple membership/roles based application, but when I deploy it onto a remote server the application doesn't seem to pick-up the user roles.
I've created the user database on SQL server 2000 using the aspnet_regsql.exe - no problems.
In the web.config I've named the application (applicationName="/stockmachine").
I run the web site administration tool from within Visual Studio (2008) and add users, roles and apply the roles to the users.
On my login page I have a login view with 4 views, anonymous, logged in, role group admin and role group member.
This works fine on my local PC but when I try on the remote server I can login but even though my user belongs to the admin role group the login view will only display the standard logged in view. Also the application is called stockmachine within IIS on the remote server.
I've checked the database and the user is linked to the role in the aspnet_UsersInRoles table and all is using the application ID associated with the application, within aspnet_Applications.
Can anybody please help me out with this because it's driving me nuts.
Oh yes, PS. This is using .net 2.0.
Big thanks in advance.
@ndyB
.
- Follow-Ups:
- Prev by Date: Re: Exchange webDav Configuration
- Next by Date: Password reset configuration with ActiveDirectoryMembershipProvide
- Previous by thread: Exchange webDav Configuration
- Next by thread: Re: Membership and Roles not working when application is deployed
- Index(es):
Relevant Pages
|
|