摘要:
string aaa = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory().ToString(); 阅读全文
摘要:
打开程序-运行-cmd:输入一下命令重新注册IISC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i以下是aspnet_regiis.exe参数的说明信息:-i - 安装 ASP.NET 的此版本,并更新 IIS 元数据库根处的 脚本映射和根以下的所有 脚本映射。现有的低版本脚本映射 升级到此版本。-ir - 安装 ... 阅读全文
摘要:
RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp"); textBox1.Text = key.GetValue("MajorVersion").ToString(); 阅读全文
摘要:
{ //站点名称和物理路径 String webSiteName = "wang"; String pathToRoot = @"c:\wang"; DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3SVC");// Find unused ID value for new web site int siteID = 1; //... 阅读全文
摘要:
this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Paused) { try { this.serviceController1.... 阅读全文
摘要:
this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Running) { try { this.serviceController1... 阅读全文
摘要:
this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Stopped) { try { this.serviceController1... 阅读全文
摘要:
this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Running) { try { this.serviceController1... 阅读全文
摘要:
this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "MSFtpsvc"; if (this.serviceController1.Status == ServiceControllerStatus.Paused) { try { this.serviceControlle... 阅读全文
摘要:
this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "MSFtpsvc"; if (this.serviceController1.Status == ServiceControllerStatus.Running){ try { this.serviceControlle... 阅读全文