ASP.NET Login Control rejects users who exist
Posted
by rsteckly
on Stack Overflow
See other posts from Stack Overflow
or by rsteckly
Published on 2010-04-16T19:13:33Z
Indexed on
2010/04/16
19:23 UTC
Read the original article
Hit count: 277
Hi,
I'm having some trouble with the ASP.NET 2.0 Login Control.
- I've setup a database with the aspI.net regsql tool.
- I've checked the application name. It is set to "/".
The application can access the SQL Server. In fact, when I go to retrieve the password, it will even send me the password. Despite this, the login control continues to reject logins.
I added this to the web.config
:
<membership defaultProvider="AspNetSqlProvider">
<providers>
<clear/>
<add name="AspNetSqlProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
And I added the following to my connection strings:
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=IDC-4\EXCALIBUR;Initial Catalog=allied_nr;Integrated Security=True;Asynchronous Processing=True"/>
(Note the "remove name" is to get rid of the default connection string in the App_Data directory.)
Why won't the login control authenticate users?
© Stack Overflow or respective owner