在域用户下运行的msdeploy和AppPool

时间:2013-03-27 16:05:04

标签: msdeploy msdeployserviceagent

我正在使用CompanyApp.deploy.cmd来远程部署Web应用程序包(/ t:Package)。 AppPool在域用户(因为kerberos)下运行,而不是在网络服务帐户下运行。

我正在使用本地管理员进行部署。

在CI服务器上构建时,我打电话:

CompanyApp.deploy.cmd
  /Y
  /M:IP
  /U:Administrator
  /P:******
  -enableRule:DoNotDeleteRule

发生以下错误:

27-Mrz-2013 14:41:28    SetParameters from:
27-Mrz-2013 14:41:28    "C:\b\SH-SDS09-DEP2\CompanyApp\CompanyApp.SetParameters.xml"
27-Mrz-2013 14:41:28    You can change IIS Application Name, Physical path, connectionString
27-Mrz-2013 14:41:28    or other deploy parameters in the above file.
27-Mrz-2013 14:41:28    -------------------------------------------------------
27-Mrz-2013 14:41:28     Start executing msdeploy.exe
27-Mrz-2013 14:41:28    -------------------------------------------------------
27-Mrz-2013 14:41:28     "C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package='C:\b\SH-SDS09-DEP2\CompanyApp\CompanyApp.zip' -dest:auto,computerName="IP",userName="Administrator",password="********",includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"C:\b\SH-SDS09-DEP2\CompanyApp\CompanyApp.SetParameters.xml"  -enableRule:DoNotDeleteRule -setParam:...
27-Mrz-2013 14:41:29    Info: Using ID '475e8a8f-94a4-4cda-8e4c-a281bbc75145' for connections to the remote server.
27-Mrz-2013 14:41:29    Info: Adding ACL's for path (Default Web Site/CompanyApp)
27-Mrz-2013 14:41:29    Error: (3/27/2013 2:41:29 PM) An error occurred when the request was processed on the remote computer.
27-Mrz-2013 14:41:29    Error: The account 'COMPANYDOMAIN\service_user' does not appear to be valid. The account was obtained from this location: 'system.applicationHost/applicationPools/CompanyAppPool'.
27-Mrz-2013 14:41:29    Error: Some or all identity references could not be translated.
27-Mrz-2013 14:41:29    Error count: 1.

当AppPool在网络服务帐户下运行时,远程部署成功。

哪个星座可以在这里成功部署?

1 个答案:

答案 0 :(得分:0)

服务正在运行的凭据,因为它没有对applicaitonhost.config的写入权限。您应该授予此用户对\ inetsrv \ config

的写权限