05 2018 档案

Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state
摘要:For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017. Go to Tools > 阅读全文

posted @ 2018-05-31 13:30 itjeff 阅读(280) 评论(0) 推荐(0) 编辑

VS2015 调试中断点突然失效的解决办法、VS调试时关闭调试让浏览器继续保留页面
摘要:VS2010 调试中断点突然失效的解决办法 问题描述:在调试前加了断点,但debug时红色的断点变成透明的圆圈加一个感叹号,执行到该处时也不会停止。 这个问题遇到过几次了,前几次都没怎么注意,有时候是因为复制粘贴了某段代码后就这样了,然后点击撤销到复制之前的状态,再点保存,之后再复制过来就ok。 实 阅读全文

posted @ 2018-05-30 10:30 itjeff 阅读(4604) 评论(0) 推荐(0) 编辑

Postman调用WebService,包括头验证部分
摘要:Postman调用WebService时,Body中选择Raw,最右端选择XML(txt/xml),然后把某个方法显示在页面的xml拷贝到请求框中即可,如下图: 以下是postman中的设置, 阅读全文

posted @ 2018-05-22 15:56 itjeff 阅读(3402) 评论(0) 推荐(0) 编辑

C# 正则表达式大全
摘要://.net中把不是数字和字母的字符串去掉,只留下数字和字母 Console.WriteLine("pls input sth"); var input = Console.ReadLine(); var ss = Regex.Replace(input, "[^a-zA-Z0-9]+", ""); 阅读全文

posted @ 2018-05-15 09:51 itjeff 阅读(7521) 评论(1) 推荐(0) 编辑

Webservice超时问题
摘要:Winform客户端调用Webservice 120秒超时.对此问题,针对服务器与客户端分别作了超时设置为300S. 1. 服务器端设置超时 在 web.config 的 system.web 里添加如下配置项: < httpRuntimeexecutionTimeout="300000"/> 记得 阅读全文

posted @ 2018-05-10 11:35 itjeff 阅读(421) 评论(0) 推荐(0) 编辑

C# DateTime的 ParseExact和 TryParseExact 使用说明
摘要:最近需要把“20121010”转换为“2012-10-10”格式,直接用Convert.ToDateTime("20121010"),系统报错“未被识别的DateTime类型”。 解决方法: 一、DateTime.ParseExact string str = "20121010"; IFormat 阅读全文

posted @ 2018-05-10 11:24 itjeff 阅读(28594) 评论(0) 推荐(2) 编辑

NLog自定义字段写入数据库表,示例
摘要://自定义字段写入NLog日志 private void saveNLog(InvokeLogModel model) { LogEventInfo ei = new LogEventInfo(); ei.Properties["InvokeResult"] = model.InvokeResult; ei.Properties["RequestUrl"] = model.RequestUrl... 阅读全文

posted @ 2018-05-07 09:18 itjeff 阅读(1024) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示