12 2010 档案

Timespan不能用XmlSerializer序列化?
摘要:今天在用XmlSerializer序列化一个类时发现一个TimeSpan类型的属性内容始终为空,后来实验发现Timespan类型对象的序列化结果总是空的,虽然还不清楚原因,但是在StackOverfl... 阅读全文

posted @ 2010-12-18 18:57 Gildor Wang 阅读(547) 评论(0) 推荐(0) 编辑

HttpWebRequest以UTF-8编码写入内容时发生“Bytes to be written to the stream exceed the Content-Length bytes size specified.”错误
摘要:出错代码如下: 原因是直接使用Encoding.UTF8,在StreamWriter中使用这个Encoding会在流的开头写入byte order mark. 解决方法是改用new UTF8Encoding(false)来构造不写入byte order mark的Encoding. 阅读全文

posted @ 2010-12-13 01:10 Gildor Wang 阅读(1179) 评论(0) 推荐(0) 编辑

连接Lync Server时“There is a problem Verifying the Certificate from the Server”错误
摘要:今天搞Lync Server 2010玩,全部配好后,用Lync 2010连Lync Server时,手动设置了服务器地址,但是登录时发生“There is a problem Verifying the Certificate from the Server”错误,死活连不上。这时大多数情况下原因是CA根证书没有导入到客户端,但我这里CA的根证书也已经导入为trusted root CA了。 最后发现,是因为设置的服务器地址是设的ip,所以证书验证时host就不对了。将设置中的服务器地址改为Lync Server的计算机名即可。 阅读全文

posted @ 2010-12-11 22:32 Gildor Wang 阅读(1735) 评论(0) 推荐(0) 编辑

用AutoHotKey对付流氓全局快捷键
摘要:我们经常碰到有些流氓软件或者设计不完善的软件会设置一些全局快捷键,同时又没有提供修改或取消的功能。这时,如果这些快捷键和某些局部快捷键发生冲突,就令人非常恼火了。用AutoHotKey可以轻松地解决这一问题。 阅读全文

posted @ 2010-12-09 23:22 Gildor Wang 阅读(678) 评论(2) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 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 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示