摘要: 将Program类的删除,将里面的静态类Main修改后放入服务类中:partial class Server1 : ServiceBase { public Server1() { InitializeComponent(); } /// /// 应用程序的主入口点。 /// static void Main(string[] args) { Server1 sv = new Server1(); ... 阅读全文
posted @ 2014-02-19 14:44 zhaocj 阅读(1483) 评论(0) 推荐(0) 编辑
摘要: 做此程序的原因是将软件部署简化,省去IIS的麻烦部署,减少项目实施人员的工作量和工作复杂度Server sv = new Server(8000, "/", @"D:\web", IPAddress.Any, null, "Login.aspx");// **********************************************************************************// CassiniDev - http://cassinidev.codeplex.com// // Copyrigh 阅读全文
posted @ 2014-02-19 14:27 zhaocj 阅读(1442) 评论(5) 推荐(0) 编辑