当我尝试使用Web部署发布我的应用程序。我得到这个错误Web部署任务失败 - 框架版本不匹配
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
http://www.iis.net/learn/publish/troubleshooting-web-deploy/web-deploy-error-codes做了#2。
重新启动服务,我仍然会收到错误。
请帮忙。
UPDATE:
冉
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 4已经在机器上。我检查了。 –
您是否将特定网站设置为.net 4? – ZippyV
是的。我确实..... –