Visual studio Visual Studio 2012';发布配置文件';到Windows Server 2008-';目标不兼容';错误

Visual studio Visual Studio 2012';发布配置文件';到Windows Server 2008-';目标不兼容';错误,visual-studio,visual-studio-2012,webdeploy,microsoft-web-deploy,Visual Studio,Visual Studio 2012,Webdeploy,Microsoft Web Deploy,我正在将网站表单Visual studio 2012部署到Windows Web Server 2008 R2 我可以很好地连接到Web Deploy-尽管我遇到以下错误: 1>(27/05/2013 21:03:29) An error occurred when the request was processed on the remote computer. 1>Source (appHostConfig=Default Web Site/myAppMVC4) and dest

我正在将网站表单Visual studio 2012部署到Windows Web Server 2008 R2

我可以很好地连接到Web Deploy-尽管我遇到以下错误:

1>(27/05/2013 21:03:29) An error occurred when the request was processed on the remote computer.
1>Source (appHostConfig=Default Web Site/myAppMVC4) and destination (appHostConfig=myapp.com) are not compatible for the given operation.
1>Publish failed to deploy.

我通过右键单击项目(而不是解决方案)修复了此问题—单击“打包/发布Web”并取消选择“包括IIS中配置的IIS设置”

现在可以了


这可能是因为我在Windows 8上本地使用IIS 8,在Windows Server 2008上使用IIS 7?

,并且还要确保您更改了正确的配置文件(版本与调试)。我花了一段时间才弄明白。