07 2016 档案

C# RSA PEM解密字符
摘要:1、第一步先用openssl将pem的key转换为der的key //bin>openssl.exe rsa -in rsakeydec.pem -outform der -out pri.der 2、调用下面的程序直接读取der转换为c#所需要的xml Key,之后进行密文解密 阅读全文

posted @ 2016-07-21 13:43 ~紫鱼~ 阅读(4588) 评论(1) 推荐(0)

httpwebrequest 服务器提交了协议冲突. section=responsestatusline
摘要:调用接口的时候,包: 解决方案: req.KeepAlive = false; req.AllowAutoRedirect = true; req.CookieContainer = new System.Net.CookieContainer(); ServicePointManager.Expe 阅读全文

posted @ 2016-07-20 14:48 ~紫鱼~ 阅读(2451) 评论(1) 推荐(0)

Request is not available in this context
摘要:部署到新服务器的IIS的时候发现这个错误: 解决方案: web.config这里配置下,请参考红色的部分! 阅读全文

posted @ 2016-07-15 13:10 ~紫鱼~ 阅读(693) 评论(0) 推荐(0)

webClient请求JAVA超时解决方案
摘要:private class MyWebClient: WebClient { protected override WebRequest GetWebRequest(Uri uri) { WebRequest w = base.GetWebRequest(uri); w.Timeout = 20 * ... 阅读全文

posted @ 2016-07-07 13:56 ~紫鱼~ 阅读(3593) 评论(0) 推荐(0)