IIS 7.0 / Windows 2008上的NAntContrib / NAnt mkiisdir失败 [英] NAntContrib/NAnt mkiisdir fails on IIS 7.0 / windows 2008

查看:163
本文介绍了IIS 7.0 / Windows 2008上的NAntContrib / NAnt mkiisdir失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用NAnt / NAntContrib构建脚本在Windows 2008(IIS 7.0)上构建Web应用程序。

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

在构建文件中,有mkiisdir任务,失败的原因是:

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

[mkiisdir]'localhost'的网络服务不存在或无法访问。

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

到目前为止我找到的所有文档/帖子(非w2k8,只有Vista)说安装IIS 6兼容性服务(所有这些,包括脚本工具等)所以我做了,但它仍然抛出此错误。

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.

知道还有什么需要改变,所以NAnt能够在IIS 7.0上创建/删除虚拟目录吗?

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

编辑:新数据 - 当我以本地管理员身份登录到此服务器时,nant任务成功,但是当我以域管理员身份登录时失败。我在本地Administrators组中添加了域管理员组,但仍然失败。知道我需要检查/更改其他权限才能让我的域管理员用户能够执行此任务吗?我可以手动创建虚拟文件夹,没有任何问题。

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.

推荐答案

要回答我自己的问题 - 我已经分离了部分代码导致问题的NantContrib,并制作了一个示例应用程序进行测试。

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.

我已将此问题作为一个单独的问题发布 here ,还有解决方案

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

干杯

这篇关于IIS 7.0 / Windows 2008上的NAntContrib / NAnt mkiisdir失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆