无法检索,因为最大邮件大小配额
我刚刚从一个MVC客户端引用一个WCF服务与basicHttpBinding的任务从WCF数据,所有工作正常,直到我有时间显示DropDownMenu具有非常人口信息表格(只是所选字段的文本和值作为下拉菜单) - 我正在谈论5000条记录 - 。 显示在dropdownmenu的信息是项目必须的,到目前为止,我没有管理,以显示50条记录的信息(所以恕我直言,是不是MVC下拉问题),但是当涉及到显示存储在表中全程记录了这消息无法检索,因为最大邮件大小配额
正如我提到我使用basicHttpBinding的和所有工作正常,直到得到了错误信息,所以我没有在Web.config一些变化,它看起来像这样:
<system.web> <compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
<bindings>
<basicHttpBinding>
<binding name="basicHttp" allowCookies="true" maxBufferPoolSize="2147483647"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" >
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
-->
<directoryBrowse enabled="true"/>
</system.webServer>
<connectionStrings>
<add name="SIFP_GFC" connectionString="Dsn=sifp_desarrollo"
providerName="System.Data.Odbc" />
</connectionStrings>
</configuration>
但仍然得到了同样的问题,你能告诉我为了正确显示下拉菜单中的数据,我必须做些什么?
回答:
您应该重写配置,按右边的按钮到终点(在WCF测试客户端),选择edit config
和重写配置在服务器绑定
以上是 无法检索,因为最大邮件大小配额 的全部内容, 来源链接: utcz.com/qa/266707.html