asp.net – 具有完全内存错误的WCF服务(内存门检查失败,因为可用
发布时间:2020-12-16 00:41:25 所属栏目:asp.Net 来源:网络整理
导读:我有一个WCF服务主机。我的请求来自wc很高。我的主持人,经过一段时间的展示,记忆力充沛。这个问题重复。当我打开Web Service帮助页面时,会显示此错误: Memory gates checking failed because the free memory (1398493184 bytes) is less than 5% of tot
我有一个WCF服务主机。我的请求来自wc很高。我的主持人,经过一段时间的展示,记忆力充沛。这个问题重复。当我打开Web Service帮助页面时,会显示此错误:
我的WCF主机的web.config如下: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnable="true"/> <serviceDebug includeExceptionDetailInFaults="false"/> <serviceHostingEnvironment minFreeMemoryPercentageToActivateService="1"/> </behavior> </serviceBehaviors> 和主机web.config是 <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IPaperService" clouseTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisojnMode="StringWildcard" maxBufferSize="1000000000" maxBufferPoolSize="1000000000" maxReceivedMessageSize="100000000" messageEncoding="text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="1000000000" maxArrayLength="1000000000" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" realm=""/> <message clientCredentialType="UserName" algorthmSuite="Default" /> <security> </binding> 我如何解决我的问题? 解决方法
请尝试在wCF主机的yourweb.config中将minFreeMemoryPercentageToActivateService设置为0,如
this answer所示
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ASP.NET API接口使用HttpClient进行测试和验证
- ASP.NET拒绝尊重我的权限.
- 将数据从asp.net-mvc传递到javascript的最佳做法
- asp.net – 是否可以用HTML元素替换asp:按钮
- ASP.NET WebApi 自带Json返回日期带T无法格式化的问题
- asp.net-mvc – 加载登录表单时网站速度慢
- asp.net – 实现自定义成员资格提供程序成员资格用户问题
- asp.net – Windows 8 RTM上的Visual Studio 2012 Web发布无
- asp.net邮件添加ReplyTo
- asp.net-mvc – ASP.NET MVC显示格式不会将DateTime格式化为
推荐文章
站长推荐
- asp.net – 使用MvcBuildViews构建Razor = true失
- asp.net – 动态编译的文件在.NET中使用csc.exe吗
- asp.net-mvc – ASP.NET MVC中依赖于语言的路由
- asp.net – 通过使用JQuery调用Web服务可能存在哪
- asp.net – 使用HTML标记到web.config文件
- asp.net-mvc – 为什么在Asp.Net Identity 2.0 P
- asp.net-mvc-3 – jQuery Mobile/MVC:使用Redir
- asp.net-mvc – 在ASP.NET MVC视图中使用代码隐藏
- asp.net-mvc – IApplicationBuilder.New()的目的
- asp.net – HttpClient:通常只允许使用每个套接
热点阅读