当尝试部署到 SQL Azure 并在发布 Web 对话框中启用更新数据库时,出现以下错误:
The remote host does not have the dbDacFx Web Deploy provider installed, which is required for database publishing. To learn more about this visit this link.
使用:Visual Studio 2012 RTM、SQL Server 2012、Windows 7 Ultimate
项目类型: MVC 4.0 (API)
连接字符串:
Server=tcp:SERVER.database.windows.net,1433;Database=DB_NAME;User ID=Me@Server;Password=PASSWORD;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;
其他:防火墙端口对我的测试 IP 开放。源数据库托管在本地实例上。目标数据库最初设置为新的“预览”模式,但我也在标准下复制了此模式。没有使用 EntityFramework(不允许“更新数据库”)。发布时禁用防火墙,没有效果。
最佳答案
直到本周我们进行最新更新之前,Windows Azure 网站才出现 dbDacFx。请立即重试,如果您仍然收到错误,请告诉我。
关于.net - Visual Studio 错误地报告未安装 Web 部署提供程序 (SQL Azure),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12333265/