08 2017 档案

Controller中的方法利用ip跨域访问
摘要:1、首先配置applicationhost.config文件 右击IIS,点击显示所有应用程序即可找到此config文件。 找到<binding protocol="http" bindingInformation="*:60074:localhost" />节点,在下面配置一条,将localhos 阅读全文

posted @ 2017-08-31 13:55 kimi1908 阅读(953) 评论(0) 推荐(0)

Datatable转成List
摘要:public static List DatatableToList(this DataTable dt) where TResult : class, new() { //创建一个属性的列表 List prlist = new List(); //获取TResult的类型实例 反射的入口 ... 阅读全文

posted @ 2017-08-31 13:32 kimi1908 阅读(189) 评论(0) 推荐(0)

C#利用WebClient 两种方式下载文件(转)
摘要:WebClient client = new WebClient(); 第一种 string URLAddress = @"http://files.cnblogs.com/x4646/tree.zip"; string receivePath=@"C:\"; client.DownloadFile(URLAddress, receivePath + System.IO.Path.Get... 阅读全文

posted @ 2017-08-02 18:29 kimi1908 阅读(402) 评论(0) 推荐(0)

c# 在windows服务中 使用定时器
摘要:让windows服务每隔设定的时间执行一次 阅读全文

posted @ 2017-08-02 15:35 kimi1908 阅读(840) 评论(0) 推荐(0)

Windows服务安装异常:System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不可 访问的日志: Security
摘要:Install.bat中配置如下 阅读全文

posted @ 2017-08-02 15:31 kimi1908 阅读(580) 评论(0) 推荐(0)

导航