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

在做JC系统时,出现这样的错误:

                 

出现该错误信息的原因是因为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" minFreeMemoryPercentageToActivateService=“0”/>  
   <bindings>  
     <basicHttpBinding>  
原文地址:https://www.cnblogs.com/a849788087/p/6076626.html