Re: Weird issue with Login Control and Authentication
- From: PeterKellner <pkellnernews@xxxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 12:02:05 -0700
On 14 Jun 2006 07:12:33 -0700, "CarlosSanchezJr@xxxxxxxxx"
<CarlosSanchezJr@xxxxxxxxx> wrote:
Quick background on what I'm using:
Visual Web Developer 2005
SQL Server Express 2005
Hosted on my local machine (this is just a "get used to 2.0" test
website)
I have created the membership (?) schema in my existing Express 2005
database. That has went well. I have two users in that database, both
assigned to the role, "Administrators".
I have a login control inside a user control that is either persistent
across the pages (via Master Page) or in a Login.aspx page. Now here
is where the weirdness kicks in. If I go into debug mode from VWD and
attempt to login, everything works just fine. However, if I go to that
website directly via "http://localhost/" (I have IIS pointed to that
folder), the rest of the website works great, but no matter how many
times I try and with what user accounts I try with, I get the standard
"Your login attempt was not successful. Please try again." message the
Login Control kicks back out to you.
I've checked the database and it is not recording login attempts while
this is happening. It has me going bonkers! Any ideas?
Make sure you have applicationName set in your web.config. Example
below:
<membership defaultProvider="SqlMembershipProvider"
userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="SqlMembershipProvider" applicationName="appname"
....
</membership>
Peter Kellner
http://peterkellner.net
.
- References:
- Weird issue with Login Control and Authentication
- From: CarlosSanchezJr@xxxxxxxxx
- Weird issue with Login Control and Authentication
- Prev by Date: Re: Roles and Windows Auth - From custom Admin tool instead?
- Next by Date: Re: securityadministration
- Previous by thread: Weird issue with Login Control and Authentication
- Next by thread: Calling Web Service that calls other Web Service with Windows Authentication
- Index(es):
Relevant Pages
|