Re: Membership and Roles not working when application is deployed
- From: thazexx <thazexx@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 4 Mar 2008 08:24:03 -0800
How did you solve the problem? I am experiencing the exact same issue.
Tim
"@ndyB" wrote:
Don't worry..
Problem sorted.
@ndyB
"@ndyB" <abryan@xxxxxxxxxxxxx> wrote in message
news:n8GdnSLQPswllybanZ2dneKdnZydnZ2d@xxxxxxxxxxxx
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
- Prev by Date: RE: Reconnect to a session and authenticate.
- Next by Date: RE: Reconnect to a session and authenticate.
- Previous by thread: RE: Reconnect to a session and authenticate.
- Next by thread: ASP.NET_SessionId being losting between pages.
- Index(es):
Relevant Pages
|
|