我们有一个解决方案,由几个类库和一个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