会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
greencolor
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
54
55
56
57
58
59
60
61
62
···
82
下一页
2010年7月31日
Get .net framwork path
摘要: string aaa = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory().ToString();
阅读全文
posted @ 2010-07-31 20:18 greencolor
阅读(116)
评论(0)
推荐(0)
2010年7月30日
.net2.0 Framework注册到IIS,重新注册IIS
摘要: 打开程序-运行-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
阅读(6279)
评论(0)
推荐(0)
IIS -v
摘要: RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp"); textBox1.Text = key.GetValue("MajorVersion").ToString();
阅读全文
posted @ 2010-07-30 08:39 greencolor
阅读(137)
评论(0)
推荐(0)
2010年7月29日
Creat website
摘要: { //站点名称和物理路径 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
阅读(274)
评论(0)
推荐(0)
Continue IIS website
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Paused) { try { this.serviceController1....
阅读全文
posted @ 2010-07-29 14:59 greencolor
阅读(127)
评论(0)
推荐(0)
PAUSE IIS website
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Running) { try { this.serviceController1...
阅读全文
posted @ 2010-07-29 14:58 greencolor
阅读(121)
评论(0)
推荐(0)
Start IIS website
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Stopped) { try { this.serviceController1...
阅读全文
posted @ 2010-07-29 14:55 greencolor
阅读(158)
评论(0)
推荐(0)
STOP IIS website
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "W3SVC"; if (this.serviceController1.Status == ServiceControllerStatus.Running) { try { this.serviceController1...
阅读全文
posted @ 2010-07-29 14:54 greencolor
阅读(184)
评论(0)
推荐(0)
Continue FTP
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "MSFtpsvc"; if (this.serviceController1.Status == ServiceControllerStatus.Paused) { try { this.serviceControlle...
阅读全文
posted @ 2010-07-29 14:49 greencolor
阅读(178)
评论(0)
推荐(0)
PAUSE FTP
摘要: this.serviceController1 = new ServiceController(); this.serviceController1.ServiceName = "MSFtpsvc"; if (this.serviceController1.Status == ServiceControllerStatus.Running){ try { this.serviceControlle...
阅读全文
posted @ 2010-07-29 14:48 greencolor
阅读(110)
评论(0)
推荐(0)
上一页
1
···
54
55
56
57
58
59
60
61
62
···
82
下一页
公告