码迷,mamicode.com
首页 > 其他好文 > 详细

WCF 内存入口检查失败 Memory gates checking failed

时间:2015-02-28 11:29:52      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:wcf配置问题

        在做JC系统时,出现这样的错误:            技术分享      技术分享

       英文报错:Memory gates checking failed because the free memory ({0} bytes) is less than {5}% of total memory. As a result, the service will not be available for incoming requests. To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.

    出现该错误信息的原因是因为WCF服务激活之前,系统应该具有的最小内存量不足config文件中设置的百分比。我是在本机调试的时候出现的。

       解决方法:

       关闭其他不用的程序,释放内存。或者更改客户端webconfig中
     system.serviceModel–>
     serviceHostingEnvironment–>

     minFreeMemoryPercentageToActivateService=1属性值为小一些,或者为0。

     如下代码所示:     
 <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>

    </behaviors>
    <serviceHo1tingEnvironment multipleSiteBindingsEnabled="true" <span style="color:#ff0000;">minFreeMemoryPercentageToActivateService=0</span>/>
    <bindings>
      <basicHttpBinding>






  

WCF 内存入口检查失败 Memory gates checking failed

标签:wcf配置问题

原文地址:http://blog.csdn.net/wangdan199112/article/details/43982729

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!