469,317 Members | 1,871 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

Login control problems

I'm trying to use the login control and have it use the membership
provider framework to authenticate users and am having a problem (which
i'm sure will turn out to be a stupid mistake on my part)... this is
what I have done thus far:

Created a database on a sql 2000 server and then used the aspnet_regsql
tool to create the membership tables
I then modified the web.config as such:

<system.web>
<roleManager enabled="true" />
<membership defaultProvider="CustomizedProvider">
<providers>
<clear />
<add name="CustomizedProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="membership"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>
....
Then I used the ASP.NET web site administration utililty to add a
couple users. I also have verified that the tool created the users
successfully by looking in the database that I created above...

finally, I created a login.aspx page and placed in it a single tag that
looks like:

<asp:Login id="loginUser1" runat="server"
MembershipProvider="CustomizedProvider"
DestinationPageUrl="~/default.aspx">

when I attempt to login using the login control... I get:

Your login attempt was not successful. Please try again

I know the username and password are right and have even created more
than one user trying, again, unsuccessfully to login.

Am I wrong in assuming that I don't need to write any code for this to
work... I reflectored the login control to see what it does when the
button is clicked and it calls ValidateUser on the MembershipProvider.
In fact it uses the default membership provider if you don't specify
one via the MembershipProvider property...

Any ideas what I'm doing wrong?
Thanks....

Sep 27 '06 #1
3 1385
See if my previous post helps you at all:

http://groups.google.com.au/group/mi...905c34d0ad9698

Or comes up as first result if you search google groups for:
Membership provider login Steven Nagy

Good luck,
Steven

Sep 28 '06 #2

Steven Nagy wrote:
See if my previous post helps you at all:

http://groups.google.com.au/group/mi...905c34d0ad9698

Or comes up as first result if you search google groups for:
Membership provider login Steven Nagy

Good luck,
Steven
Wow, I don't know if I would have caught that too soon... thanks...
"application" doesn't even show up in intellisense. I had to dig
through the docs to find it.

Sep 28 '06 #3
Yeah it was a couple of hours for me to find it too.
And I stumbled across it completely by accident.

Sep 28 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by XP | last post: by
10 posts views Thread by amit.purohit | last post: by
reply views Thread by Steve Commisso | last post: by
12 posts views Thread by Michael | last post: by
9 posts views Thread by ad | last post: by
1 post views Thread by Jakob Lithner | last post: by
2 posts views Thread by mdavis | last post: by
10 posts views Thread by DavidPr | last post: by
Paxxer
1 post views Thread by Paxxer | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.