我有一個TFS 2013版本,我試圖發佈到生成服務器上的文件夾。我已經安裝了WebDeploy,但我總是得到錯誤:麻煩發佈網站TFS 2013
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (4274): Web deployment task failed. (Could not connect to the remote computer ("localhost"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE .)
我已經成立了一個網站,在構建服務器而這也正是我想要發佈的網站。實際上,我甚至不關心發佈它本身 - 我只需要我的編譯輸出自動到本地文件夾。現在,我們必須手動打開解決方案並選擇發佈...以獲取後續InstallShield構建需要輸入的輸出。這裏是我的MSBuild參數。有沒有人有任何想法可能會失蹤?
/p:SrcDir=C:\Builds\TFS\WebApps\Src
/p:RevKeyname=WebAppsRevNr
/p:DeployOnBuild=true
/p:DeployTarget=MsDeployPublish
/p:MSDeployServiceURL=https://127.0.0.1:8172/msdeploy.axd
/p:CreatePackageOnPublish=True
/p:DeployIisAppPath="WebApp"
/p:MsDeployPublishMethod=WMSVC
/p:AllowUntrustedCertificate=True
/p:AutoParameterizationWebConfigConnectionStrings=False
/p:Authtype=NTLM /p:username=""
我已經檢查了net start wmsvc和net start msdepsvc,並且兩者都在運行。有任何想法嗎?
謝謝!
UPDATE 我已經試過了安迪建議和現在的一切,當我在命令行中我得到這個奇怪的錯誤消息,這條命令:
"C:\Workspace\VS2013\WebApps\Main\Src\webapps.sln" (default target) (1) ->
"C:\Workspace\VS2013\WebApps\Main\Src\CoreWebApps\CoreWebApps.csproj"
(default
target) (7) ->
(AutoParameterizationWebConfigConnectionStringsCore target) ->
C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web
.Publishing.targets(2295,5): error : Could not open Source file: Could not
find
a part of the path
'C:\Workspace\VS2013\WebApps\Main\Src\CoreWebApps\Areas\Adm
in\Views\Web.config;Areas\Admin\Views\Web.config'.
[C:\Workspace\VS2013\WebApps
\Main\Src\CoreWebApps\CoreWebApps.csproj]
任何想法,爲什麼它尋找Web.config文件;區\管理\查看\ Web.config文件。」?這是沒有意義的。
行 - 我想你提到的一切,現在我得到這個奇怪的錯誤消息:(見上修改問題): –
@Ben_G請看到更新的答案,您可以嘗試鏈接文章中提到的解決方法,以檢查是否適合您。 –