Note that there are some explanatory texts on larger screens.

plurals
  1. POchanged name of membership database, can't find users
    primarykey
    data
    text
    <p>I created an asp.net site using VS 2008. I was using a db in app_data for membership. I am moving this to a new server and the db will be attached to a sql server 2008 R2 instance. I wanted to change the db name so it would fit in better with the rest of the server. Since I changed the name from ASPNETDB.mdf to Reporting.MDF I cannot login and ASP.NET says I have no users. I used the rename function in VS and updated my connectionstring.</p> <pre><code>&lt;connectionStrings&gt; &lt;add name="MembershipConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Reporting.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/&gt; &lt;/connectionStrings&gt; &lt;system.web&gt; &lt;!--added to create new membership to connect to--&gt; &lt;roleManager enabled="true"&gt; &lt;providers&gt; &lt;clear/&gt; &lt;add connectionStringName="MembershipConnectionString" applicationName="WebSite2" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken="/&gt; &lt;/providers&gt; &lt;/roleManager&gt; &lt;membership defaultProvider="SqlMembershipProvider"&gt; &lt;providers&gt; &lt;clear/&gt; &lt;add connectionStringName="MembershipConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="WebSite2" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="SqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" /&gt; &lt;/providers&gt; &lt;/membership&gt; </code></pre> <p>Users: 0 Provider: Test to check db works fine.</p> <p>edit: I removed the publicKey in case it is tied to me in some way.</p> <p>edit: I changed the name back to aspnetdb and it still does not work.</p> <p>If i delete the membership code it works again. This is after changing the name back to aspnetdb. I am back where I started.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload