Membership credential verification failed.

If you receive this error in the error log of your project here is its description and solution.

Prerequisites: Your application must have custom login functionality based on Forms Authentication method implemented. Also built-in functionality for Roles, Users and Membership must be used.

Problem: The visible issue is that the user cannot login to the application and the following error appears in the Event Viewer (Start -> Control Panel -> Administrative Tool -> Event Viewer):

Error in Event Viewer:
Event code: 4006
Event message: Membership credential verification failed.
Event time: 28/08/2006 12:30:12
Event time (UTC): 28/08/2006 09:30:12
Event ID: 04b22a752da345baabe19236fb25675f
Event sequence: 2
Event occurrence: 1
Event detail code: 0

Here is the solution: The “ApplicationName” value in “aspnet_Applications” database table and the “applicationName” property value for all providers in web.config (Membership provider, Role provider, Profile provider etc.) must have the same value.

You can read more in this article.

, , ,
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Technorati
  • digg
  • Reddit
  • SphereIt
  • DotNetKicks
  • YahooMyWeb

2 Responses to “Membership credential verification failed.”


  1. 1 wodel Dec 13th, 2006 at 8:46 am

    Hey,

    In my WebSite I have ApplicationName = “\”
    and ApplicationName = “\” in machine.config which is the default value

    but my website still not working

  2. 2 Vesy Dec 13th, 2006 at 5:31 pm

    Could you describe your problem in more details?

    What you mean by “In my WebSite I have ApplicationName = “\””, the web.config, the database?

    Do you use forms authentication and built-in functionality for Memberships?

    If you receive errors, you can paste them here and I’ll try to help you.


Google

Blogroll


Blogroll Me!

Enter your email address:

Delivered by FeedBurner







Academics Blogs - Blog Top Sites