NAntContrib / NAnt mkiisdir does not work on IIS 7.0 / windows 2008

I am trying to use the NAnt / NAntContrib build script to create a web application in Windows 2008 (IIS 7.0).

There is a mkiisdir task in the assembly file that fails:

[mkiisdir] The web service in "localhost" does not exist or is not available.

All the documents / messages I have found so far (not for w2k8, only for Vista) say that they install IIS 6 compatibility services (all of them, including scripting tools, etc.). So I did it, but he throws this error anyway.

Any idea what else needs to be changed so that NAnt can create / delete virtual directories on IIS 7.0?

EDIT: New Data. When I log in to this server as a local administrator, this task is successful, but it does not work when I log in as a domain administrator. I added the domain administrators group to the local Administrators group, but it still does not work. Think about what other permissions I need to check / change to get my domain administrator to manage this task? I can create virtual folders manually without any problems.

+5
source share
2 answers

To answer my own question, I highlighted the part of the code in NantContrib that caused the problem and tested the test application.

, .

+2

All Articles