3

我正在將一個網站窗體Visual Studio 2012部署到Windows Web Server 2008 R2。Visual Studio 2012'發佈配置文件'到Windows Server 2008 - '目標不兼容'錯誤

我可以連接到Web部署很好 - 雖然我得到這個錯誤:用鼠標右鍵單擊該項目(不解決方案)

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. 

回答

2

我解決了這個問題 - 點擊封裝/發佈Web和取消「包括IIS設置配置在IIS'

現在工作正常。

也許這是因爲我在Windows 8本地使用IIS 8 - 而Windows Server 2008使用IIS 7?

+0

並確保您正在更改正確的配置文件(發佈與調試)。花了我一段時間來弄清楚。 –

相關問題