快捷搜索:  as  2018  FtCWSyGV  С˵  test  xxx  Ψһ  w3viyKQx

和记怡情APP_机器人论坛



近来在做一个WCF端天生word的功能,在Silverlight端调用WCF通报一系列参数之后,发明会呈现差错。颠末多次测试是由于我通报了图片的byte[]以前,结果导致参数长度越过了限定,就over了。又颠最后多方资料的查询,终极获得了办理规划,主如果对web.config进行精确的设置设置设备摆设摆设,代码如下:

system.serviceModel>

behaviors>serviceBehaviors>

behavior name="FileServiceBehavior">serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />

serviceDebug includeExceptionDetailInFaults="false" />dataContractSerializer maxItemsInObjectGraph="2147483647"/>

behavior>serviceBehaviors>

behaviors>serviceHostingEnvironment aspNetCompatibilityEnabled="true"

multipleSiteBindingsEnabled="true" />services>

service behav和记怡情APPiorConfiguration="FileServiceBehavior" name="RichTextBoxDemo.Web.FileService">endpoint address="" bindingConfiguration="basicHttpBinding_Generic" binding="basicHttpBinding" contract="RichTextBoxDemo.Web.IFileService"/>

service>services>

bindings>

basicHttpBinding>binding name="basicHttpBinding_Generic"

allowCookies="false" bypassProxyOnLocal="false"hostNameComparisonMode="StrongWildcard"

maxBuffer和记怡情APPSize="2147483647"maxBufferPoolSize="2147483647"

maxReceivedMessageSize="2147483647"messageEncoding="Text" textEncoding="utf-8"

transferMode="St和记怡情APPreamed"useDefaultWebProxy="true">

readerQuotas maxDepth="2147483647"maxStringContentLength="2147483647" maxArrayLength="2147483647"maxB和记怡情APPytesPerRead="2147483647" maxNameTableCharCount="和记怡情APP2147483647"/>security mode="None">

transport clientCredentialType="None"proxyCredentialType="None" realm="" />

message clientCredentialType="UserName" algorithmSuite="Default" />security>

binding>basicHttpBinding>

bindings>system.serviceModel>

留意 长度为 "2147483647"的地便利是要留意和改动的地方,好了,再次打开你的法度榜样通报较长的字符串(其他类型)会神奇的发明,没有呈现NonFound差错。

您可能还会对下面的文章感兴趣: