Re: Membership and Roles not working when application is deployed



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




.



Relevant Pages

  • Membership and Roles not working when application is deployed
    ... 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. ... On my login page I have a login view with 4 views, anonymous, logged in, role group admin and role group member. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Membership and Roles not working when application is deployed
    ... 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. ... On my login page I have a login view with 4 views, anonymous, logged in, role group admin and role group member. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Publishing
    ... The user name etc is correct, it will logon to remote server and from then ... the publish button with out it continually popping up the login box. ... Thanks Kevin ... >> Outgoing mail is certified Virus Free. ...
    (microsoft.public.frontpage.programming)
  • Remote server security
    ... When configure a remote server login in SQL Server 7.0, ... which is the opposite of what BOL states (and BOL by its definition makes ... Am I missing something here or is this a bug? ...
    (microsoft.public.sqlserver.security)
  • Remote Server Security
    ... When configure a remote server login in SQL Server 7.0, ... which is the opposite of what BOL states (and BOL by its definition makes ... Am I missing something here or is this a bug? ...
    (microsoft.public.sqlserver.security)