Membership provider issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I am trying to play with the Survey manager application provided
gracefully by Microsoft at
"http://msdn.microsoft.com/vstudio/express/sql/samples/" VB team(so many
thanks), compiled the win app, added 2 users beside the "thardy" user already
shipped with the aplication. I can not pass the Login page, I always get the
following message on the login page :

"Your login attempt was not successfull"

In spite of the fact I tried to harden the passwords with special caracters,
length of passwords more than 12 caracters...no way

I don't know how to debug the membership component, any help would be highly
appreciated. Is there any doc on how to troubleshoot those providers
thanks in advance
 
Hello eliassal,

From your description, you're using the "Surveymanager app" sample from
MSDN site and encounter some problem managing the accounts in the
application, correct?

I've downloaded the "Survey Application" and test it on my local
environment, it seems the user accounts can be created or modified
correctly as long as the database connection is correctly configured and
can be established.

for the problem you met, is it occurring whenever you try accessing any
data in the application(need communication with database). What I have
tried is using the windows form application to add two new accounts and the
account creation finished successfully. Also, if the operation also finish
correctly , but failed when you try logging them at runtime(in web
application), you can try directly open the mdf database file(in visual
studio server explorer) and check the username/password in the (Membership
and Users tables). The password format is cleartext.

Please feel free to let me know if you have anything unclear or if there is
any further problem.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.
 
I exactly diid that, opened the DB, found that passwords are correct.
Still can not enter the website where as I can add users in the win appa and
the asp site config works correctly.

Salam
 
Hello Salam,

Thanks for your reply.

So if the user account data has been correctly inserted into the database,
the problem should be specific to the web application's membership data
accessing code logic.

Currently I think you can do the following check against the ASP.NET web
application part:

1. Since the default database is the database file in the class library
project and be installed into system folder(in microsoft samples folder),
have you ever changed it such as move it to other place or attach it into a
standard SQL Server instance? If so, have you made both the windows form
application/the class library and the ASP.NET membership provider's
connectionstring to the updated new value? ASP.NET membership provider
setting contains a connectionstring property that need to point to the
correct connectionstring entry in config file.

2. Since the ASP.NE membership provider can be called programmatically,
you can try the following code to check the membership API in the ASP.NET
application:

** Use "Membership.GetAllUsers()" to query all the existing users in
membership database to see whether all the users(include the one you added)
are retrieved.

** Use "Membership.ValidateUser(name, password)" to manually valdiate the
new users you added to see whether it works.

If you have any questions or any other finding, please feel free to post
here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Salam,

have you got any further progress or ever had a chance to perform the test
in my last reply? If you still need any help on this, please feel free to
post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top