英文:
Getting error after tried publishing ASP.Net MVC web to IIS "Web deployment task failed... "
问题
我尝试第二次将我的网站发布到IIS。但是今天我遇到了错误,错误消息是:“严重性代码说明项目文件行抑制状态错误:Web部署任务失败。(由于缺少依赖项,SQL提供程序无法运行。请确保安装了Microsoft SQL Server Management Objects(版本10或更高版本)。了解更多信息:https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SMO_NEEDED_FOR_SQL_PROVIDER。)”
为什么我会遇到这个错误?在此之前,当我尝试将我的网站发布到IIS时,没有出现这样的问题。我已经卡在这个问题上3天了,尝试解决了这个问题,但仍然没有解决。我在这里找到了类似的问题,我查看并尝试了,但对我没有用。
当我在本地运行Web项目时,这个问题没有出现,我的网站可以像往常一样正常运行。但只有当我想要使用Web部署发布到IIS时才会出现这个错误。
请帮忙。我是新手。
英文:
I tried publishing my website to IIS for the second times. But today I'm getting error which is "Severity Code Description Project File Line Suppression State Error: Web deployment task failed. (The SQL provider cannot run because of a missing dependency. Please make sure that Microsoft SQL Server Management Objects (Version 10 or higher) is installed. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SMO_NEEDED_FOR_SQL_PROVIDER.)"
Why I'm getting this error? Before this when I tried published my website to IIS don't have issue like this. I'm stuck on this issues for 3 days now, I've tried solved this matter but still didn't work. I found similar issue like this here, I have a look and try but did not work for me.
When I try run web project on local this problem didn't appear, my web can run accordingly like usual. But only when I want to publish to IIS using web deploy getting this error.
Please help. I'm new here.
答案1
得分: 0
根据错误信息,我们需要安装SMO来解决问题。
如果您不知道如何解决它,最简单的方法是重新安装Microsoft SQL Server,并选择完整组件,这将需要更多时间。
英文:
According the error message, we need to install SMO to fix the issue.
If you don't know how to resolve it, and the easiest way is re-install the Microsoft SQL Server with full componments and it will take more time.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论