2008年2月3日
摘要: 添加引用:AspNetMMCExt 添加名字空间:using Microsoft.Aspnet.Snapin; AspNetManagementUtility aspnet = new AspNetManagementUtility(); string e; aspnet.DisplayAspNetConfigSettings("sonic-zzw", "", "/SignCode", "De... 阅读全文
posted @ 2008-02-03 17:59 pdfw 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 添加引用:AspNetMMCExt 添加名字空间:using Microsoft.Aspnet.Snapin; AspNetManagementUtility aspnet = new AspNetManagementUtility(); string verList; aspnet.AcquireVersionList(out verList, 0); Console.WriteLine... 阅读全文
posted @ 2008-02-03 11:10 pdfw 阅读(1378) 评论(1) 推荐(0) 编辑
  2007年12月25日
摘要: 1. 安装完 VS Extension 后,我们可以创建一个 WCF service 的网站项目。 2. 添加一个 WCF service 新项,系统自动会创建 Service.svc、App_Code\Service.cs 等必要文件。 3. 在 Service.cs 文件中完成服务编码。 4. 添加 web.config 文件,并在其位置单击鼠标右键,打开 "Microsoft Service... 阅读全文
posted @ 2007-12-25 16:14 pdfw 阅读(8172) 评论(2) 推荐(0) 编辑
摘要: 1、在App.config文件上右击,选择Edit WCF Configuration...。 或者打开Program Files\Microsoft Visual Studio 8\Common7\IDE\svcconfigeditor.exe后选择File - New Config。 2、创建新的服务设置。 3、手工输入,或使用 "Browser..." 选择服务所在程序集。 4.确认契... 阅读全文
posted @ 2007-12-25 15:54 pdfw 阅读(3003) 评论(4) 推荐(1) 编辑
摘要: 我们创建了WCF服务以后,可以通过客户端代理文件在客户端方便的使用WCF服务中定义的方法。要创建客户端代理文件可以通过两种方式: 一、.net中提供的Svcutil.exe工具来进行。这个工具在Program Files\Microsoft SDKs\Windows\v6.0\Bin中,当然了,这个目录要在安装了.net 3.0开发包之后才会有。 生成客户端代理文件之前要先把WCF服务启动起来,然... 阅读全文
posted @ 2007-12-25 14:51 pdfw 阅读(1341) 评论(1) 推荐(0) 编辑
  2007年10月26日
摘要: 今天通过远程桌面重启服务器失败了,远程桌面就登录不进去了,不过还是能ping通的,为了能接着工作,就写了下面的代码去重启服务器。使用System.Mangement命名空间需要引用System.Mangement。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Da... 阅读全文
posted @ 2007-10-26 14:59 pdfw 阅读(1614) 评论(0) 推荐(0) 编辑
  2007年10月11日
摘要: function FileOperation() { var fso, f1, f2, s; fso = new ActiveXObject("Scripting.FileSystemObject"); f1 = fso.CreateTextFile(... 阅读全文
posted @ 2007-10-11 15:28 pdfw 阅读(979) 评论(0) 推荐(0) 编辑
  2007年10月9日
摘要: Process process = new Process(); string strSignToolPath = string.Empty; string strPfxFilePath = string.Empty; string password = string.Empty; string strFilePath = string.Empty; string strCmd = st... 阅读全文
posted @ 2007-10-09 14:02 pdfw 阅读(1317) 评论(0) 推荐(0) 编辑
  2007年9月18日
摘要: 使用File.Move方法进行文件重命名操作。 下面是File.Move方法的定义: public static void Move( string sourceFileName, string destFileName ); 阅读全文
posted @ 2007-09-18 10:07 pdfw 阅读(3255) 评论(0) 推荐(0) 编辑
  2007年9月13日
摘要: 父窗口的定义 namespace Test { public delegate void ChildClose(); public partial class Parent : Form { private void btnLogIn_Click(object sender, EventArgs e) { Chield ch = new Chield();... 阅读全文
posted @ 2007-09-13 17:14 pdfw 阅读(5161) 评论(0) 推荐(0) 编辑