Click here to Skip to main content
15,920,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I have a website in which intranet user's login is automated (authenticated via windows loginID/pwd) and it was working fine.
Now there was a need to change website to another server.
When accessing the new server,website is prompted for username/pwd rather than taking it automatically.
All the website settings is same as old one but cannot identify what's the root cause.
Any help is appreciated

Thanks
Posted

1 solution

XML
First Go to Appdata,Open the Asp.net membership.It will get opened in the server explorer.Right Click on it and select publish.It will create the sql script.Execute it on the server.

and then add the following in web.config.Pls change the connection string name alone

<roleManager enabled="true">
            <providers>
                <clear/>
                <add connectionStringName="KTWConnectionString" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0,  Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a "/>
            </providers>
        </roleManager>
and

<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a " connectionStringName="KTWConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="/"/>
    </providers>
</membership>
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900