【问题标题】:Web Deployment Task Failed - FRAMEWORK VERSIONS DO NOT MATCHWeb 部署任务失败 - 框架版本不匹配
【发布时间】:2013-07-22 15:27:21
【问题描述】:

当我尝试使用 web deploy 发布我的应用程序时。我收到此错误

Web deployment task failed. (The versions of the .NET Framework Configuration Provider (machineConfig32) are different on the source (4.0) and destination (2.0).  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH.)

我去了这个页面,在 ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH 下做了 #2

http://www.iis.net/learn/publish/troubleshooting-web-deploy/web-deploy-error-codes.

重新启动服务,我仍然收到错误。

请帮忙。

更新:

msdeploy -verb:sync -source:machineConfig32 -dest:machineConfig32,computerName=10.10.10.10 -disableSkipDirective:ConfigProtectedData

得到了

C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:machine
Config32 -dest:machineConfig32,computerName=10.10.10.10 -disableSkipDirective:Con
figProtectedData 
Info: Using ID '0998ab97-343f-4338-8f74-ceaf614ea0d1' for connections to the rem
ote server.
Total changes: 0 (0 added, 0 deleted, 0 updated, 0 parameters changed, 0 bytes c
opied)

【问题讨论】:

    标签: .net visual-studio msdeploy webdeploy


    【解决方案1】:

    您的应用程序是用比服务器上安装的版本 (2.0) 更新的 .Net (4.0) 版本编写的。您可能需要将服务器更新到 .Net 4.0

    这里是how to install 4.0 的说明。基本上,您只需下载代码并运行它。

    不同版本的 .Net 可以在同一台机器上并行运行。

    如果您在将服务器连接到互联网进行安装时遇到问题,您可以获取一些指导here

    编辑:This article 专门针对 .NET Framework 配置提供程序和 4.0 所需的更改。

    【讨论】:

    • 您是否将特定站点设置为.net 4?
    【解决方案2】:

    尝试跳过 AppPool 同步。可能是您的应用程序 AppPool 配置为在源服务器和目标服务器上使用不同版本的 Asp.Net。

    【讨论】:

      【解决方案3】:

      我遇到了这个问题,并且非常疯狂地试图解决它。发布工作正常,但我无法进行调试部署。我在这两种环境中肯定都有 .Net 4。最后,我打开警告并注意到一条消息,指出指定了不应一起使用的 2 个部署参数。我转到“属性”>“打包/发布 Web”并取消选中“包括 IIS Express 中配置的 IIS 设置”。中提琴!多么美味的皮塔饼。

      【讨论】:

        猜你喜欢
        • 2013-03-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多