Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Web Publish to remote server fails with ERROR_USER_UNAUTHORIZED

$
0
0

I am trying to publish a couple of web projects in a solution during msbuild to a remote web server.

I have my build server, my appplication server and my laptop.

The build server and the application server are both Windows Servers 2008 R2 with IIS 7.

The build server and the laptop both have Visual Studio 2013 installed.

All computers are in the same domain.

I can publish from the build server to the build server using MSBuild with the following arguments:

/p:DeployOnBuild=True;PublishProfile=Test /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:MSDeployPublishMethod=InProc /p:VisualStudioVersion=12.0

I can publish from the build server and from my laptop from inside Visual Studio both to the build and the application server.

However i cannot publish from the build server to the application server using MSBuild command line.

I tried these arguments:

/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0

/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0 /p:MSDeployPublishMethod=WMSVC

/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0 /p:username=MYDOMAIN\TheUser /p:password=xxx /p:MSDeployPublishMethod=WMSVC

/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0 /p:username=MYDOMAIN\TheUser /p:password=xxx /p:AuthType=NTLM /p:MSDeployPublishMethod=WMSVC

/p:DeployOnBuild=True;PublishProfile=Production /p:IsAutoBuild=True /p:AllowUntrustedCertificate=True /p:VisualStudioVersion=12.0 /p:username="" /p:AuthType=NTLM /p:MSDeployPublishMethod=WMSVC

I also tried adding the user in the IIS Manager Permissions on the application server which did not work either.

The Management Service on the application server is configured to accept Windows and IIS Authentication.


Viewing all articles
Browse latest Browse all 2763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>