title: Could not find stored procedure 'dbo.aspnet_UsersInRoles_GetRolesForUser'
body: <p>Strange errors are happening after backing up a SQL Server database to another server. The application has also been migrated. It is an ASP.NET MVC4 application.</p>
  
  <p>I get the following error:</p>
  
  <pre><code>Could not find stored procedure 'dbo.aspnet_UsersInRoles_GetRolesForUser'. 
  
  Line 1:  @{
  Line 2:      bool visible = false;
  Line 3:      if (User.IsInRole("Administrador"))
  Line 4:      {
  Line 5:          visible = true;
  </code></pre>
  
  <p>The stored procedure is there, the database is the same, and the server has the same name so I presume the connection string should not be changed. </p>
  
  <p>How can I trace the errors to find what is going on?</p>