2009年5月16日

用Asp调用C#写的COM组件。VS2005

摘要: http://yomin.blogbus.com/logs/27750006.html最近的一个项目要用到ASP来调用C#写的com组件。在网上找了很多相关的资料,由于不少文章的开发环境都是VS2003,所以遇到了不少问题。现在总结一下过程。1、创建一个C#的类库。名称为ASPcall。2、修改class1.cs的代码如下:using System;using System.Collections... 阅读全文

posted @ 2009-05-16 11:08 韩显川 阅读(292) 评论(0) 推荐(0)

C#中通过代码控制IIS服务重启

摘要: C#中控制IIS服务停止ServiceController sc = new ServiceController("iisadmin");if(sc.Status=ServiceControllerStatus.Running) sc.Stop();启动IIS服务ServiceController sc = new ServiceController("iisadmin"); sc.Start()... 阅读全文

posted @ 2009-05-16 08:49 韩显川 阅读(4449) 评论(0) 推荐(0)

导航