如何以编程方式配置 IIS 6?
我看到有一个不错的库 Microsoft.Web.Administration
允许您配置 IIS 7。看来 Microsoft.Web.Administration
不适用于 IIS6,所以我想看看是否有人可以提供一些替代建议。
我正在构建一个 Windows 窗体应用程序,它将允许您实现配置所需的所有属性(网站、虚拟目录、应用程序池等)。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要配置 IIS6,您必须恢复到 System.Directory 服务。
并从那里拿走它。
希望这有帮助,
To configure IIS6 you will have to revert to the System.Directory services.
and take it from there.
Hope this helps,
有一个名为 ADSUtil.vbs 位于 IIS 的管理目录中,可用于以脚本方式(如果不是编程方式)配置 IIS。你可以呼唤它,或者阅读它并撕掉它的内部结构。
There is a massive VB script called ADSUtil.vbs that lives in IIS's admin directory that can be used to configure IIS in a scripted, if not programmatic, way. You could either call out to it, or read it and rip off its internals.