Access denied when creating a virtual directory through a web deployment project

I am trying to use a web deployment project (VS 2008) in a TFS solution to deploy a website to a build server (TFS 2008) to run network-based unit tests. For some reason, which I still cannot understand, it is not creating a virtual directory:

Using the "CreateVirtualDirectory" task from the assembly "C: \ Program Files \ MSBuild \ Microsoft \ WebDeployment \ v9.0 \ Microsoft.WebDeployment.Tasks.dll". CreateVirtualDirectory Task Initializing the IIS Web Server ... C: \ Program Files \ MSBuild \ Microsoft \ WebDeployment \ v9.0 \ Microsoft.WebDeployment.targets (667.5): Error: Access denied. C: \ Program Files \ MSBuild \ Microsoft \ WebDeployment \ v9.0 \ Microsoft.WebDeployment.targets (667.5): error: Failed to create virtual directory 'abc'. Completed the task "CreateVirtualDirectory" - FAILED.

The TFSService user, of course, is in the Administrators group on the TFS build machine (which is running Windows Server 2008). I do not know what else could be wrong. Ive checked the event log, there are no clues. I can manually create a virtual directory on this computer through the IIS console without any problems.

Any ideas what could be the problem or suggestions on how to diagnose this further?

+3
source share
5 answers

it must have permissions ... did you try to put the TFSService in the same groups you are in?

+1
source

TFS , , IIS? , , TFS , .

+1

, TFSService, , , ? , , , , , .

0

, IIS . IIS, , 80 .

0
source

I eventually managed to launch the deployment by invoking the _CopyWebApplication build target for the web application from my TFS script assembly (after manually creating the IIS virtual directory). I had to add an additional goal, at least in order to link the files in the project that I need to copy, since the built-in _CopyWebApplication target does not include these.

0
source

Source: https://habr.com/ru/post/1697829/


All Articles