Keep getting "Your login attempt was not successful...." from <asp:Login> control - but it works on

J

Jack

Hi,

I have defined a role called 'Administrator' and a user called 'admin' and
made 'admin' a member of this role 'Administrator'.
In my ASP.NET 2.0 web application, I simply have an <asp:LoginView> and
inside this I have :

<asp:LoginView ID="LoginViewMain" runat="server">
<AnonymousTemplate>
... Normal web
surfers view this stuff here ...
</AnonymousTemplate>
<RoleGroups>
<asp:RoleGroup Roles="Administrator">
<ContentTemplate>
... Users with the
membership of 'Administrator' view this stuff here ...
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
</asp:LoginView>

I have a login.aspx page that has a <asp:Login> control that allows the
'admin' to logon.

This all works perfeclty on my development XP machine (when I press F5), but
when I deploy it to the Windows 2003 box live on the internet, the admin
can't login. The only error I get is 'Your login attempt was not successful.
Please try again.'

I tried with different usernames and installed SQL server express and
'openned' up the security options on SQL Server Express thinking it was a
type of security issue? I'm at a loss as to why the admin can't login, and
can't seem to get any actual errors. Can any one suggest some help?

Thanks,
Jack.
 
J

Jack

I managed to fix it.

I set the security settings on the MDF and LDF files to 'Modify' and 'Write'
on the IIS_WPG group. (Right-click on each file, then select Properties,
then in the 'Security' tab.

Jack.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top