"Membership credential verification failed" with IIS but not with Cassini

Last post 02-25-2009 11:10 AM by junto. 4 replies.

Sort Posts:

  • "Membership credential verification failed" with IIS but not with Cassini

    10-15-2006, 2:35 PM
    • Contributor
      4,676 point Contributor
    • Jos Branders
    • Member since 10-18-2003, 9:19 AM
    • Brussels, Belgium
    • Posts 733

    I have problems with forms authentication when I test my pages with IIS (localhost).

    When I use the built-in webserver of VWD (Cassini, localhost:1234), it works fine.

    In IIS, I can't log in, and I get this message in the eventlogs: "Membership credential verification failed".

    I'm using the default membership database ASPNETDB.
    I already gave read/write access to the App_Data folder for the ASPNET user.

    Any help is appreciated.

  • Re: "Membership credential verification failed" with IIS but not with Cassini

    10-15-2006, 8:21 PM
    • All-Star
      23,809 point All-Star
    • pkellner
    • Member since 11-12-2004, 10:42 AM
    • San Jose, California
    • Posts 3,573
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
    you might want to verify you have applicationname set to something besides / in your web.config.  That's often a reason for the problem on iis.
    Peter Kellner
    http://peterkellner.net
    Microsoft MVP • ASPInsider
  • Re: "Membership credential verification failed" with IIS but not with Cassini

    10-20-2006, 1:19 PM
    • Contributor
      4,676 point Contributor
    • Jos Branders
    • Member since 10-18-2003, 9:19 AM
    • Brussels, Belgium
    • Posts 733
    Thanks! Your post was a great help!
  • Re: "Membership credential verification failed" with IIS but not with Cassini

    10-20-2006, 1:20 PM
    Answer
    • All-Star
      23,809 point All-Star
    • pkellner
    • Member since 11-12-2004, 10:42 AM
    • San Jose, California
    • Posts 3,573
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    pretty common problem.  we've all run into it.

    I just wrote a blog about it so hopefully more people will find the answer easily.

     
    http://peterkellner.net/2006/10/20/loginfailswithiisnotcasini/

     

    Peter Kellner
    http://peterkellner.net
    Microsoft MVP • ASPInsider
  • Re: "Membership credential verification failed" with IIS but not with Cassini

    02-25-2009, 11:10 AM
    • Member
      2 point Member
    • junto
    • Member since 02-02-2007, 4:41 AM
    • Posts 1
    You might also see this error if you have a custom membership provider and it does not have access to the underlying database. I recreated my database and was unable to login, having forgotten to add the specified user permissions to the database. Adding the correct user as db_owner solved the problem. Regards Ben
Page 1 of 1 (5 items)