- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在编写 WCF 服务来上传文件,但是当字节数组的元素超过 16384 时,它会引发异常。
这是异常详细信息:
The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'CreateDocument'. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 22862.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IDocumentLibraryService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:50764/DocumentLibraryService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IDocumentLibraryService"
contract="DocumentLibrary.IDocumentLibraryService" name="BasicHttpBinding_IDocumentLibraryService" />
</client>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IDocumentLibraryService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="BasicHttpBinding_IDocumentLibraryService">
<clear />
<endpoint address="mex" binding="mexHttpBinding" name="mex" contract="Peninsula.DocumentLibrary.ServiceLayer.IDocumentLibraryService" />
<endpoint binding="basicHttpBinding" name="DocumentLibraryService" contract="Peninsula.DocumentLibrary.ServiceLayer.IDocumentLibraryService" address=""
bindingConfiguration="BasicHttpBinding_IDocumentLibraryService"/>
</service>
</services>
最佳答案
我需要做的就是将 web.config 文件中的服务名称更改为带有命名空间的完整服务名称:
<service name="SampleNameSpace.DocumentLibraryService">
<clear />
<endpoint address="mex" binding="mexHttpBinding" name="mex" contract="Peninsula.DocumentLibrary.ServiceLayer.IDocumentLibraryService" />
<endpoint binding="basicHttpBinding" name="DocumentLibraryService" contract="Peninsula.DocumentLibrary.ServiceLayer.IDocumentLibraryService" address=""
bindingConfiguration="BasicHttpBinding_IDocumentLibraryService"/>
</service>
关于wcf - WCF 中的最大数组长度配额异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5896717/
在文档中我们可以找到 The limits are based on a moving window that tracks the number of requests you send per h
我试图了解使用 Windows Azure 托管 Web 服务的正确方法。在阅读了一些可用的文档后,我已经达到以下几行: Windows Azure takes the following actio
我正在运行 GitLab Community Edition并希望为 GitLab 项目(存储库)添加配额,以防止用户创建大型项目。 配额应以最大项目大小为单位,例如每个项目 420 MB。这可能吗?
我已经通过 jersey 框架构建了 Web 服务 API。现在我想限制每个客户的配额。例如: - 一个客户一天只能发出少于10000个请求。 - 一个客户端每秒只能发出少于 10 个请求。等等等等。
我们使用免费 API 制作简单的 501C3 map 。通常我们的地理编码使用率很低,但我们所做的更改 [oops] 触发了所有 >2500 条记录的重新请求。 我们可以等待 24 小时“超时”。 我
我们知道任何人或任何公司都向我们提供了许多 API 来开发我们的应用程序。其中一些需要订阅并为您提供访问 token 或 key 等。您可以使用这些 key 访问和使用这些 API,这些 key 使他
在 google chrome 中 indexedDB 的配额限制是什么?不知何故,似乎很少有人提到这一点。我可以像在 Firefox 中一样使用无限配额并获得用户许可吗? 最佳答案 Unlimite
是否有关于如何处理 sql azure 配额限制的最佳实践?也许某种自动增加? 最佳答案 您可以使用以下查询确定该层的大小限制: SELECT Edition = DATABASEPROPERTYEX
关闭。这个问题需要details or clarity .它目前不接受答案。 想改进这个问题?通过 editing this post 添加详细信息并澄清问题. 1年前关闭。 Improve this
我尝试将 nodeJS 中的视频插入 Youtube,但出现此错误: { errors: [ { domain: 'youtube.quota', reason: 'quotaExceeded', m
我们将 API 帐户从免费更新为付费,但它不允许我们增加配额。我的理解是如果我去的话应该有一个选择APIs & auth --> APIs --> 选择 API --> Quota,但没有。 有人可以
Version 3 of the YouTube Data API has concrete quota numbers listed in the Google API Console where
对于这个特定问题,我发现了几个相关问题,但 Google 团队没有给出明确的答案: 写入 BigQuery 的 Cloud DataFlow 作业是否限制为每表每秒 10 万行的 BigQuery 配
据我了解(给定 this previous question 和 the Google Maps API docs ),攻击者似乎可以用完另一个站点的配额。 例如,假设我运行一个网络应用“Find T
我正在使用 pubnub Java SDK 3.7.2。我只使用免费计划。当我不停地发布一堆消息时,经常会出现以下错误。但我每 200-300 毫秒发布一条消息,错误不会发生。发布间隔有限制吗? [E
我尝试在 GCP 中购买额外的 promise 使用折扣,但出现此错误。 Quota 'COMMITTED_CPUS' exceeded. Limit: 75.0 in region asia-sou
我有一个应用程序,它使用 youtube-data-API 来分析视频描述中的一些数据。我想从我的应用程序中及时检查我的配额使用情况。 最佳答案 您可以从 Google 控制台检查您的配额,方法是转到
我正在本地开发一个应用程序,我只是集成了 Youtube data api v3 来查询视频。 昨晚我收到 403 错误,说我的每日配额已超出。如果我查看开发者控制台中配额下的图表,它说昨天有 10,
是否可以为 azure 应用服务可以使用的 CPU 和 RAM 使用量设置配额(或限制)? 假设我有一个应用服务计划 plan-one 和在该计划上运行的两个应用服务:A 和 B。我可以以某种方式说
我正在寻找一种使用client-go来获取 namespace 资源配额的方法,类似于kubectl describe ns my-namespace-name。 我已经尝试过ns, err := k
我是一名优秀的程序员,十分优秀!