Click here to Skip to main content
13,298,551 members (38,986 online)
Rate this:
Please Sign up or sign in to vote.
I have an ASP.NET Website in which I am facing login issue with user name being added as multiple but with different Application ID,
but user names are same.
Since for this application many developers had been working on it, and whoever started it, he created a new Appliction Name in the
Web.config as well as in the ASPNET Membership configuration(aspnet_regsql.exe, etc.), and some Appliction Names were given for Testing
builds/testing purposes only.

Due to the above mentioned reason, various similar named users have been added to the database, but their application id are different.
And due to this, the login is causing some failure, and the users are unable to login.

Although I have found one of the following article useful, I think it might give some hint for the people who are trying to answer my question:-

In the Server where the application has been deployed, the Error Log in the Applications are showing the following detail:-
Event code: 4006 Event message: Membership credential verification failed.

Since the Application Name is to be just one, i.e. "/FOPortal", rest are not to be used.

Kindly find below the web.config sections which may be needed:-
<add name="utConnString" connectionString="Data Source=blabla\SQLEXPRESS2008;Initial Catalog=FOPortal;User Id=sa;Password=123;Max Pool Size=100;" providerName="System.Data.SqlClient"/>
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
                <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="utConnString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="Hashed" applicationName="/FOPortal"/>
<roleManager enabled="true"></roleManager>

Some body gave me this resolution but it did not work:-

I would like to know that how would I resolve this issue.

Muzaffar Ali Rana.
Posted 10-Sep-12 4:57am
Updated 10-Sep-12 5:18am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Actually the problem was in the ASP.NET Membership applicationName setting, since the project was configured twice for two different application names with names as "/" and "/PROJECTNAME". I have just set the Application Name appropriately.

For reference please refer to the following article by Scott Guthrie:-[^]

What I can do is delete the records for the Membership with the application names with names as "/", and keep the other "/PROJECTNAME".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171207.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100