上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 82 下一页
摘要: string aaa = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory().ToString(); 阅读全文
posted @ 2010-07-31 20:18 greencolor 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 打开程序-运行-cmd:输入一下命令重新注册IISC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i以下是aspnet_regiis.exe参数的说明信息:-i - 安装 ASP.NET 的此版本,并更新 IIS 元数据库根处的 脚本映射和根以下的所有 脚本映射。现有的低版本脚本映射 升级到此版本。-ir - 安装 ... 阅读全文
posted @ 2010-07-30 10:16 greencolor 阅读(6256) 评论(0) 推荐(0) 编辑
摘要: RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp"); textBox1.Text = key.GetValue("MajorVersion").ToString(); 阅读全文
posted @ 2010-07-30 08:39 greencolor 阅读(130) 评论(0) 推荐(0) 编辑
摘要: { //站点名称和物理路径 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; //... 阅读全文
posted @ 2010-07-29 20:15 greencolor 阅读(268) 评论(0) 推荐(0) 编辑
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Paused) { try { this.serviceController1.... 阅读全文
posted @ 2010-07-29 14:59 greencolor 阅读(121) 评论(0) 推荐(0) 编辑
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Running) { try { this.serviceController1... 阅读全文
posted @ 2010-07-29 14:58 greencolor 阅读(110) 评论(0) 推荐(0) 编辑
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Stopped) { try { this.serviceController1... 阅读全文
posted @ 2010-07-29 14:55 greencolor 阅读(149) 评论(0) 推荐(0) 编辑
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Running) { try { this.serviceController1... 阅读全文
posted @ 2010-07-29 14:54 greencolor 阅读(176) 评论(0) 推荐(0) 编辑
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "MSFtpsvc"; if (this.serviceController1.Status == ServiceControllerStatus.Paused) { try { this.serviceControlle... 阅读全文
posted @ 2010-07-29 14:49 greencolor 阅读(169) 评论(0) 推荐(0) 编辑
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "MSFtpsvc"; if (this.serviceController1.Status == ServiceControllerStatus.Running){ try { this.serviceControlle... 阅读全文
posted @ 2010-07-29 14:48 greencolor 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 82 下一页