Membership login failed after moving application

P

Pierre

Hi!

I've been searching a solution for days but all i've tried didn't work. We
have a .NET2 web application running on a server. A couple of days ago they
ask me to move this web application on a new server. So i've copied the web
application folder on the new server and i've also copied all the DB
including the one for membership.

After that i've made some change in my webconfig for my connectionString.
When i start my application the page for login is displayed. When i try to
login i always have this message "Login attempt unsuccessful, please try
again".

I've started the ASP.NET Web Site Administration tool then i've added a new
user. After that i've checked my database and the new user was added. Then
i've tried to log on my application using this new user but it doesn't work
either.

Here is what i have in my webconfig:
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="BDConnectionString" connectionString="Data
Source=(local);Persist Security Info=True;User ID=***;Password=**********"
providerName="System.Data.SqlClient" />
<add name="AspNetConnectionString" connectionString="Data
Source=(local);Initial Catalog=ASPNETDB.MDF;Persist Security Info=True;User
ID=****;Password=*******"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>

<membership>
<providers>
<clear/>
<add connectionStringName="AspNetConnectionString"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false" passwordFormat="Hashed"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10"
passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</membership>
<roleManager enabled="true">
<providers>
<clear/>
<add connectionStringName="AspNetConnectionString" applicationName="/"
name="AspNetSqlRoleProvider"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>

In my webconfig my application name is "/" and i have the same name in my
aspnet_application table.
This application have to be working tomorow morning so i really need help.
I've trying to figure out the problem for days and i haven't found the
problem.

Anyone know what the problem can be ? I'm using Sql serveur 2005.

Thanks !!!!
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top