NAntContrib/NAnt mkiisdir fails on IIS 7.0 / windows 2008

╄→гoц情女王★ 提交于 2019-12-06 03:26:04

问题


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.


回答1:


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




回答2:


To answer my own question - I have isolated the part of the code in NantContrib which was causing the problem, and made a sample application to test.

I have posted this as a separate question here, and there is the solution as well.

Cheers



来源:https://stackoverflow.com/questions/260526/nantcontrib-nant-mkiisdir-fails-on-iis-7-0-windows-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!