我們有一個解決方案,由幾個類庫和一個Web應用程序項目組成。我們在Team Build中使用TFS 2012。解決方案 在構建服務器上正確編譯。TFS 2012團隊構建和Web應用程序部署--L ERROR_USER_NOT_ADMIN
我目前正在嘗試通過MSBuild參數來做到這一點。
/P:DeployOnBuild =真/ P:DeployTarget = MsDeployPublish /P:CreatePackageOnPublish =假/ P:MSDeployPublishMethod = RemoteAgent /P:MsDeployServiceUrl = https://testWebServer:8172/MsDeploy.axd?site=direct
/P:AllowUntrustedCertificate =真 /P:DeployIisAppPath =「直接「 /p:AuthType = NTLM
該解決方案構建但不部署。我收到以下錯誤消息:
msdeploy error ERROR_DESTINATION_INVALID: Web deployment task failed. (Could not connect to the remote computer ("https"). Make sure that the remote computer name is correct and that you are able to connect to that computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_INVALID.) [C:\Builds\1\ProjectName\Solution General Build\Sources\Temp Source\ProjectName\Solution\Project.csproj]
是否有另一個參數,我應該通過指定服務器?我做了 不打算作爲服務器的名稱...我試圖省略 https://無濟於事,錯誤是一樣的,所以它從 某處獲得值。
我有以下值嘗試這樣的MsDeployServiceUrl:
https://testWebServer:8172/MsDeploy.axd?site=direct
https://testWebServer:8172/MsDeploy.axd
"https://testWebServer:8172/MsDeploy.axd?site=direct"
https://192.168.X.X:8172/MsDeploy.axd?site=direct
"https://192.168.X.X:8172/MsDeploy.axd?site=direct"
testWebServer:8172/MsDeploy.axd?site=direct
更新
好吧,下面是至少連接:
- /P:MsDeployServiceUrl =
testWebServer
我已經看到了關於那個特定的參數無數的帖子,幾乎無一例外他們是一個URL,而不僅僅是一個主機名(那些看起來像我認爲只是爲了簡潔而寫的主機名)。
然而,我現在面臨着一個新問題。我在Web服務器上創建了構建服務帳戶(域帳戶)本地管理員,並且在安全日誌中出現msdeploy error ERROR_USER_NOT_ADMIN
以及審覈失敗。
分辨率
這些是我正在使用的MSBuild參數。
/p:DeployOnBuild = True/p:DeployTarget = MsDeployPublish/p:CreatePackageOnPublish = False/p:MSDeployPublishMethod = WMSvc /p:MsDeployServiceUrl="https://SERVER:8172/MsDeploy.axd「/ p:AllowUntrustedCertificate = True/p:DeployIisAppPath =「siteName」
我現在正在獲取ERROR_USER_UNAUTHORIZED。顯然,我要麼沒有正確設置委派,要麼我創建的IIS管理器用戶在某種程度上是不正確的。無論如何,如果有必要,它們將在不同的帖子中出現。
您是否嘗試過將URL雙引號 ?似乎它被砍了:! – drk 2013-02-28 15:14:36
確實我有。我用我嘗試過的一些值更新了我的帖子。我確信還有其他人嘗試過,但我不記得了...... – CodeWarrior 2013-02-28 15:25:53