Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NAntContrib/NAnt mkiisdir fails on IIS 7.0 / windows 2008

I'm trying to use NAnt/NAntContrib build script to build a web application on Windows 2008 (IIS 7.0).

In the build file, there is mkiisdir task, which fails with:

[mkiisdir] The webservice at 'localhost' does not exist or is not reachable.

All the documents/posts I found so far (non for w2k8, only Vista) say to install IIS 6 Compatibility services (all of them, including scripting tools, etc.) So I did, but it still throws this error.

Any idea what else need to be changes, so NAnt be able to create/delete virtual directories on IIS 7.0?

EDIT: New data - when I log in as local administrator to this server, the nant task succeeds, but it fails when I log in as a domain admin. I have added the domain admins group in the local Administrators group, but it still fails. Any idea what other permissions I need to check/change in order to make my domain admin user to be able to execute this task? I can create manually virtual folders without any problems.

like image 679
Sunny Milenov Avatar asked Nov 04 '08 01:11

Sunny Milenov


1 Answers

In order to get iis nantcontrib tasks to work you need to install IIS6 Management Compatibility Tools. Here is the blog describing how to do it in Vista:

http://thoughtworker.in/2008/01/15/nant-the-webservice-at-localhost-does-not-exist-or-is-not-reachable/

Here is a screenshot of how to do it in Windows Server 2008:

alt text http://img407.imageshack.us/img407/699/iis6tools.png

like image 181
Igor Zevaka Avatar answered Sep 27 '22 16:09

Igor Zevaka