1、 为了能更好的操作IIS,先添加个类库(InstallClassLibrary)到项目中。附代码 代码如下: using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.DirectoryServices; using System.Diagnostics; using System.Windows.Forms; using System.Secu