473,394 Members | 1,960 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,394 software developers and data experts.

Login control does not work... Why?

Hello,

Here is the problem. I have two sites both of which use the asp.net v2 login
controls.

Both sites are coded identicaly including the config file.

There is only one thing that is different which is the location of the
database.

One which is on SQL 2000 and one on SQL 2005.

The site that uses SQL 2005 does not seem to work.
I have used the web site config tool to add users and roles.
Once I was finished I checked to see if the users were added to the database
and they were.

Now I try to log into the site and I get the "Your login attempt was not
successful. Please try again." error.

You can't debug the control so how do I figure out what is going wrong? What
could be going wrong?

Thanks!
Nov 19 '05 #1
7 2132
I am also having a problem with the no code login control. I am using
the mysite sdk and every thing works greate in the test server
environment but when I publish to the IIS webserver on the same machine
I experience the same problems that "Redeye" gets, only I get Red
something else. If we could see the code we could debug it. Is there
any other way to debug it?Please help Microsoft

Nov 19 '05 #2
Do you have SQL Server 2005 profiling tools installed? The first piece
I'd check is to run SQL Profiler and watch to make sure the correct
database is being hit. I'd also double check the password settings
(hashed versus plain text, etc. ).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 9 Nov 2005 22:40:04 -0800, "RedEye" <re*******@hotmail.com>
wrote:
Hello,

Here is the problem. I have two sites both of which use the asp.net v2 login
controls.

Both sites are coded identicaly including the config file.

There is only one thing that is different which is the location of the
database.

One which is on SQL 2000 and one on SQL 2005.

The site that uses SQL 2005 does not seem to work.
I have used the web site config tool to add users and roles.
Once I was finished I checked to see if the users were added to the database
and they were.

Now I try to log into the site and I get the "Your login attempt was not
successful. Please try again." error.

You can't debug the control so how do I figure out what is going wrong? What
could be going wrong?

Thanks!


Nov 19 '05 #3
Silly question, but can you make sure you are not using a trusted
connection?

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:03********************************@4ax.com...
Do you have SQL Server 2005 profiling tools installed? The first piece
I'd check is to run SQL Profiler and watch to make sure the correct
database is being hit. I'd also double check the password settings
(hashed versus plain text, etc. ).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 9 Nov 2005 22:40:04 -0800, "RedEye" <re*******@hotmail.com>
wrote:
Hello,

Here is the problem. I have two sites both of which use the asp.net v2
login
controls.

Both sites are coded identicaly including the config file.

There is only one thing that is different which is the location of the
database.

One which is on SQL 2000 and one on SQL 2005.

The site that uses SQL 2005 does not seem to work.
I have used the web site config tool to add users and roles.
Once I was finished I checked to see if the users were added to the
database
and they were.

Now I try to log into the site and I get the "Your login attempt was not
successful. Please try again." error.

You can't debug the control so how do I figure out what is going wrong?
What
could be going wrong?

Thanks!

Nov 19 '05 #4
On Mon, 14 Nov 2005 09:16:39 -0600, "Tim Cartwright"
<ti************@nospam.us-interactive.com> wrote:
Silly question, but can you make sure you are not using a trusted
connection?


From code I'm not aware of any property. I'm guessing you'd have to
parse the connection string and look for "Trusted Connection".

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #5
I have the same problem (I'm using the release version of ASP.NET 2.0
from within VS 2005). I've configured my web app to work with a SQL
Server 2000 database as per 'How To: Use Forms Authentication with SQL
Server in ASP.NET 2.0'
(http://msdn.microsoft.com/library/de...ght000022.asp),
and I've set up a trace using Profiler to check that the DB is being
hit. The results are that it is NOT being hit by the Login control, bit
it IS being hit by the PasswordRecovery control. Presumably some sort
of config glitch. Anyone any ideas?

Cheers - Graham

Scott Allen wrote:
On Mon, 14 Nov 2005 09:16:39 -0600, "Tim Cartwright"
<ti************@nospam.us-interactive.com> wrote:
Silly question, but can you make sure you are not using a trusted
connection?


From code I'm not aware of any property. I'm guessing you'd have to
parse the connection string and look for "Trusted Connection".

--
Scott
http://www.OdeToCode.com/blogs/scott/


Nov 19 '05 #6
Problem sorted - I had some (test) code in the Login1_Authenticate
event. Removing it got things working.

gd*****@teignbridge.gov.uk wrote:
I have the same problem (I'm using the release version of ASP.NET 2.0
from within VS 2005). I've configured my web app to work with a SQL
Server 2000 database as per 'How To: Use Forms Authentication with SQL
Server in ASP.NET 2.0'
(http://msdn.microsoft.com/library/de...ght000022.asp),
and I've set up a trace using Profiler to check that the DB is being
hit. The results are that it is NOT being hit by the Login control, bit
it IS being hit by the PasswordRecovery control. Presumably some sort
of config glitch. Anyone any ideas?

Cheers - Graham

Scott Allen wrote:
On Mon, 14 Nov 2005 09:16:39 -0600, "Tim Cartwright"
<ti************@nospam.us-interactive.com> wrote:
Silly question, but can you make sure you are not using a trusted
connection?


From code I'm not aware of any property. I'm guessing you'd have to
parse the connection string and look for "Trusted Connection".

--
Scott
http://www.OdeToCode.com/blogs/scott/


Nov 19 '05 #7
On 15 Nov 2005 03:56:24 -0800, gd*****@teignbridge.gov.uk wrote:
Problem sorted - I had some (test) code in the Login1_Authenticate
event. Removing it got things working.


Glad you caught that - I had no ideas!

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
14
by: clintonG | last post by:
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a...
1
by: EricRybarczyk | last post by:
I am starting a rewrite of an existing Classic ASP web site in ASP.NET 2.0. The existing ASP application has several types of users, each with a separate login process (separate login page,...
1
by: Jeff Lynch | last post by:
I'd like to add the following attributes to the Login control's Login Button to create a CSS rollover effect. How can I access the control's login button from the page's code-behind? ...
4
by: hrawada | last post by:
Hello everyone, I have built a simple website with a simple login page and another page that is the destination page after logging in. The website works fine on my machince however when I...
3
by: goot | last post by:
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...
2
by: IdleBrain | last post by:
Hello All: I used a Login control to authenticate a user to login. The problem is that when I login with good username & password, the login view would say that the login was successful. But...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
20
by: luqman | last post by:
If user login with the login control in ASP.Net 2005 and then just close the browser and then open the browser again, the login status shows, User still Login? Any idea, how to Logout the User...
0
by: aboutjav.com | last post by:
Hi, How do I attach the .mdf and .ldf with the SQL Server Management Studio Express? Do I attached all 4 files? MyWebSiteName_log.LDF MyWebSiteName.mdf ASPNETDB.MDF aspnetdb_log.ldf
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.