473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 1488
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: XP | last post by:
I am having problems with the blow page. I have a login page where I enter the userid and password. This then connects to this page. If I enter the userid and password correctly, it prints...
10
by: amit.purohit | last post by:
hi, I have a very strange problem on my login Page. the Page was working fine a few days back, but now does not generate post back events for controls. this login page uses form based...
0
by: Steve Commisso | last post by:
I'm trying to create a forked login where users of certain roles will be redirected to specific pages. The easy way to do this would be to do the redirecting in the Page_Load() of the default...
12
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I...
9
by: ad | last post by:
I used login Controls of VS2005 to develop Web application. My program will check password and user ID in login.aspx. If the password is wrong, my program will display an "password is wrong"...
1
by: Jakob Lithner | last post by:
When I started a new ASP project I was eager to use the login facilities offered in Framework 2.0/VS 2005. I wanted: - A custom principal that could hold my integer UserID from the database -...
2
by: mdavis | last post by:
Hello, I'm using a Login Control on asp.net 2.0 website and it works fine on IE & Firefox, however I have recently added a javscript function to listen for a 'return-key-click' and am encountering...
10
by: DavidPr | last post by:
When I logout as one user and log in under a different user, it opens with the last user's information. User 1 - Unsername: Davey Jones User 2 - Unsername: David Smith I log out from Davey...
1
Paxxer
by: Paxxer | last post by:
I use Forms authentication with a SQL Server database. The portion of the Web.config Looks like this . <authentication mode="Forms" > <forms timeout="43200" ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.