I have recently moved away from Publishing database changes with my ASP.NET MVC Web project (mostly because the auto-generated differential sql script didn't offer any customization options which I needed to make it work).
What I did was create a database project in the same VS2013 solution - this would offer a lot more options. My plan now is to have my website project depend on the database project (to get the right build order) and then publish the freshly built dacpac along with the website - all in one single publishing action.
However, I always get an error message when I try to publish the website and after hours of searching I am still unable to resolve it. The error I get during the website publishing is:
Web deployment task failed. (Could not deploy package.
Internal Error. The database platform service with type Microsoft.Data.Tools.Schema.Sql.SqlAzureV12DatabaseSchemaProvider 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.SqlAzureV12DatabaseSchemaProvider 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.
Weitere Informationen unter: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXECUTING_METHOD.)
Interestingly, if I publish the database project instead of the web project then it will work fine. But it does temporarily leave my site in a broken state so I'd prefer not to publish db and website separately like this.
I have already installed the latest versions of SSDT (for both VS2012 and VS2013), I have installed CU6 for SQL Server 2014 and also updated SQL Server 2014 to SP1 but nothing has changed. Is there really something wrong with my client tools or is my approach to publishing the dacpac wrong altogether?