02 2012 档案

摘要:在使用WCF服务时,通常都是用svcutil生成代理类和配置,用生成的默认配置就可以调用服务。先来看看生成的默认的配置内容:View Code <client><endpointaddress="http://localhost:8732/ConfigNameService/Service1/"binding="wsHttpBinding"bindingConfiguration="WSHttpBinding_IService1"contract="IService1"name="WSH 阅读全文
posted @ 2012-02-04 11:11 神八 阅读(2735) 评论(1) 推荐(2)
摘要:今日碰到了这么一个异常,异常信息如下:Type:System.InvalidOperationException,mscorlib,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089Message:使用JSONJavaScriptSerializer进行序列化或反序列化时出错。字符串的长度超过了为maxJsonLength属性设置的值。Source:System.Web.ExtensionsHelplink:Data:System.Collections.ListDictionaryInternalTargetSite 阅读全文
posted @ 2012-02-03 14:38 神八 阅读(38090) 评论(6) 推荐(3)