The error above is normally caused by a database that is not aspnet enabled. For example, currently I have a code-first database that is previously aspnet enabled then I execute update-database -targetmigration:"0", so it removes all the tables and values.
The solution is to re-enable aspnet in your database by;
1.) Running command prompt from your Visual Basic 20xx Tools folder.
2.) Execute:
The solution is to re-enable aspnet in your database by;
1.) Running command prompt from your Visual Basic 20xx Tools folder.
2.) Execute:
aspnet_regsql.exe -S <serverName> -U <dbUser> -P <dbPassword> -A all -d <dbName>
Post a Comment