The SQL provider cannot run because of a missing dependency. Please make sure that Microsoft SQL Server Transact-SQL ScriptDom is installed

irfandar picture irfandar · Oct 4, 2016 · Viewed 7.9k times · Source

Web deployment task failed. (The SQL provider cannot run because of a missing dependency. Please make sure that Microsoft SQL Server Transact-SQL ScriptDom is installed.

I get this error while publishing any web app in visual studio with update database enabled. It was working fine until I upgraded SQL SERVER MANAGEMENT Studio to 2016.

I tried unistalling and reinstalling sql server and all required components but in vain

Any suggestions will be appreciated

Thanks

Answer

fiat picture fiat · Nov 7, 2016

Registering the ScriptDom assembly in the GAC solved this for us:

"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\gacutil" /i "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\130\Microsoft.SqlServer.TransactSql.ScriptDom.dll