In my Visual Studio 2013 project I am using Entity Framework migrations to take care of database updates. I have my Publish package set to update the database on deploy but when I try to run it I get the error:
Web deployment task failed. (Could not generate deployment script. Internal Error. The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database platform service. Internal Error. The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database platform service. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXECUTING_METHOD.)
I checked out the link it gives and it just tells me that I am getting a generic error and to check the stack trace but there is no stack trace.
I can force the update to happen if I update my web.config to point to my production DB (ran on the exact same server and my dev DB), open the package manger console, and run the -UPDATE-DATABASE command. This will run the update with no problems at all.
The database was originally created on a Windows Azure DB but that was dropped in favor of a full SQL 2014 server. The project was originally publishing to the Azure DB to test the web.config transformations and publishing ability.
What do I need to correct in order to be able to publish and update the DB at the same time?