WCF返回JSON且日期字段DateTime.MinValue时连接中断接收不到数据
摘要:问题描述:一个wcf方法,当返回格式为xml时,一切正常。但当返回格式为JSON时,浏览器提示连接中断,请重新加载。调试时可以命中断点,但客户端就是无法收到返回数据。情况和http://www.west-wind.com/weblog/posts/2008/Jun/23/Crashing-WCF-35-JSON-Services-with-DateTimeMinValue这位外国朋友提到的一样。解决方法 :returnDate=(obj.Date== DateTime.MinValue ? DateTime.SpecifyKind(DateTime.MinValue, DateTimeKind
阅读全文
posted @
2012-06-27 14:35
星星小阁阁主
阅读(575)
推荐(0)
IIS 7 The Web server is configured to not list the contents of this directory
摘要:今天发布在IIS7上部署网站访问时遇到这么个问题,提示The Web server is configured to not list the contents of this directory. 其实根据错误信息也能猜得出大概,在这里记录一下,希望可以给大家一些帮助或启发。解决方法:1)2)
阅读全文
posted @
2012-06-27 14:23
星星小阁阁主
阅读(11729)
推荐(0)
Windows Server 2008 R2 FTP 及 fireware 防火墙设置(转)
摘要:http://www.cnblogs.com/kinguru/articles/2186121.html#commentform
阅读全文
posted @
2012-06-13 12:52
星星小阁阁主
阅读(185)
推荐(0)