摘要: ASP.NET使用WEB关闭进程process.Kill(); 的时候,出现拒绝访问的提示解决方案System.Diagnostics.Process[] process = System.Diagnostics.Process.GetProcesses();for (int i = 0; i < process.Length; i++){string a = process[i].ProcessName.ToString();if ((process[i].ProcessName == "CommandSend") || (process[i].ProcessNam 阅读全文
posted @ 2012-10-25 11:59 大俗 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: 转载:在部署时使用Excel .NET运行库导出Excel遇到问题及解决办法 最近做了一个使用Excel .NET运行库导出Excel的小程序,在Win2003+Office 2003环境中,出现两个问题,Google+Baidu后解决了这两个问题。在此记录下,与大家分享,希望遇到相似问题能够有所借鉴。 使用Microsoft.Office.Interop.Excel运行库文件,并将运行库作为组件在服务器部署后,初次运行出现以下错误: 检索 COM 类工厂中 CLSID 为{00024500-0000-0000-C000-000000000046} 的组件时失败 转载网络解决方法:1:在服务器 阅读全文
posted @ 2012-10-25 11:55 大俗 阅读(439) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;namespace ProjectFrame.Web{ public class ServiceClient<TChannel> : IDisposable { private TChannel channel; public TChannel Channel { get { return this.channel; } } private bool disposed; 阅读全文
posted @ 2012-10-09 11:35 大俗 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 个人记录用 阅读全文
posted @ 2011-09-25 20:14 大俗 阅读(181) 评论(2) 推荐(1) 编辑