I am migrating my server from one box to another, both have Microsoft SQL Server 2014 running Plesk.
After migrating to the new box, I receive the error:
[SqlException (0x80131904): Could not find stored procedure 'dbo.aspnet_Membership_GetPasswordWithFormat'.]
Here is a bit longer stack trace.
[SqlException (0x80131904): Could not find stored procedure 'dbo.aspnet_Membership_GetPasswordWithFormat'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1787814
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5341674
- I created a backup of the db on the old system.
- I created a new db on the new box
- I restored the db
I did see, this article and this article, which talks not being able to find stored procedure, 'dbo.aspnet_CheckSchemaVersion'. Actually, I had that problem too. I ran:
aspnet_regsql.exe -S <servername> -U <user> -P <password -R all -d <dbname>
aspnet_regsql.exe -S <servername> -U <user> -P <password -A all -d <dbname>
I ran that to remove everything and then add everything back. That cured that particular problem, however I then ran into my current problem.
Login is fine using SSMS. This problem occurs, when I go to the website and attempt to log in. Pressing the submit button throws the error.
I do know that this stored procedure is part of ASP.Net v4.0 (the site uses v4.0). The backup/restore was full to full. I did a manual check and all looks fine. I doubt that permissions are an issue and I added all features, so what is left?
I did see this article on a similar issue. The answer stated that it looks like a required ALTER command, however the person responding failed to elaborate what that ALTER statement should be. I would concur that the answer involves that.
Articles Possible of Interest VevoCart Forum - Collation
NOTE:
I receive this error trying to log into my VevoCart online shopping cart system/site. Everything was fine until I migrated servers.
I was debugging through VS logging in as a customer and saw the complaint as "Could not find stored procedure 'dbo.aspnet_UsersInRoles_IsUserInRole'."". I just did a quick search and that is a Microsoft .Net function. That matches the same type of issue than in the Admin login, namely not being able to access the ASP.Net stored procedure. I am surprised that the command line above did not work. I would think that would be the resolution to the problem.