Weird issue with Login Control and Authentication

Discussion in 'ASP .Net Security' started by CarlosSanchezJr@gmail.com, Jun 14, 2006.

  1. Guest

    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?
     
    , Jun 14, 2006
    #1
    1. Advertising

  2. PeterKellner Guest

    On 14 Jun 2006 07:12:33 -0700, ""
    <> 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
     
    PeterKellner, Jun 29, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dorayme
    Replies:
    1
    Views:
    639
    richard
    Jan 21, 2011
  2. richard
    Replies:
    0
    Views:
    601
    richard
    Jan 21, 2011
  3. Pascal Blanchard
    Replies:
    0
    Views:
    271
    Pascal Blanchard
    Aug 17, 2004
  4. Pascal Blanchard
    Replies:
    1
    Views:
    302
    Pascal Blanchard
    Aug 18, 2004
  5. Kyle Peterson
    Replies:
    13
    Views:
    287
    Kyle Peterson
    Dec 30, 2006
Loading...

Share This Page