.net - .net 框架配置提供程序 (machineConfig64) 的版本在源 (2.0) 和目标 (4.0) 上不同

标签 .net iis windows-server-2012 webdeploy

我正在使用 Web Deploy 3.5 将网站从 Windows Server 2008 同步到 Windows Server 2012 R2,但我不断收到以下错误: .net 框架配置提供程序 (machineConfig64) 的版本在源 (2.0) 和目标 (4.0) 上不同

我按照此 website 中的说明进行操作.

我尝试从源服务器和目标服务器上的 Msdeploy.exe.config 和 Msdepsvc.exe.config 中删除 2.0 引用,但我仍然遇到相同的错误。

有什么想法吗?

最佳答案

这对我有用(拉模式):

msdeploy
-verb:sync 
-source:apphostconfig="WEB SITE",
computername=https://SRC_SERVER:8172/msdeploy.axd,
authtype=Basic,
username=USERNAME,
password=PASSWORD
-dest:apphostconfig="WEB SITE" 
-allowUntrusted 
-disableLink:FrameworkConfigExtension 
-enableLink:AppPool

新行是为了可读性

关于.net - .net 框架配置提供程序 (machineConfig64) 的版本在源 (2.0) 和目标 (4.0) 上不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31687190/

相关文章:

c# - 需要 .NET 代码仅在调试配置时执行

c# - .Net C# String.Join 如果元素值为空,如何输出 "null"而不是空字符串?

.net - 我如何在 UltraWinGrid 中设置自定义字体?

未处理 WCF MSMQ 消息队列

仅 iis 将 Expires header 添加到图像

sql-server - Azure 混合连接不适用于 SQL Server 命名实例

azure - 无法连接到 Windows Azure VM (Server 2012 R2) Web 部署服务

.net - 通过 CodeDomProvider 使用 AssemblyCopyrightAttribute 或 AssemblyCompanyAttribute 时出现编译错误

asp.net - 获取 "This type of page is not served",如何在本地机器上的 Visual Studio 中运行经典 asp?

ssl - 在 IIS 8.5 中设置具有多个绑定(bind)的 SSL 站点