I am using Windows 8, VS 2012 Express for Web, and Sql Server 2012 Express. I cannot pub;ishmy Web Application prooject using Web Deploy. My application works fine using the Development Server.
In the “Publish Web” dialog pane, with Preview menu item selected, under Databases Section I have two databases that can be previewed. These are
- Aspnetdb, with connectionstring = Data Source=(LocalDB)\v11.0; AttachDbFilename=|DataDirectory|\aspnetdb.mdf;Integrated Security=True;Connect Timeout=30
- WpcEventsSql with connectionstring = Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\ WpcEventsSQL.mdf;Integrated Security=True;Connect Timeout=30
When I click “Preview database” for aspnetdb I get the following error:
“Web deployment task failed. (Failed to create type 'Microsot.SqlServer.Dac.DacServices'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXCEPTION_WHILE_CREATING_OBJECT.)
When I click “Preview database” for WpcEventsSql I get the following (same) error:
Web deployment task failed. (Failed to create type 'Microsot.SqlServer.Dac.DacServices'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXCEPTION_WHILE_CREATING_OBJECT.)
If I click the Publish button with both databases displayed on the Publish Web dialog, I get 2 warnings and an error, as shown here:
Warning 1 The specified dacpac file exists and will be overwritten
Warning 2 The specified dacpac file exists and will be overwritten
Error 3 Web deployment task failed. (Failed to create type ‘Microsoft.SqlServer.Dac.DacServices’. Learn more at: http://go Microsoft.com/fwlink/?Linkid=221672#Error_Exception_While_Creating_Object.)
Checking the web site indicated with all the above error messages does not help (the Error_Exception_While_Creating_Object is not on that page)