本文介绍了在我的wpf项目中没有安全或不正确的安全故障的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






在我的WPF项目中我正在使用WCF服务。当我的应用程序保持闲置一段时间,然后发生异常无担保或错误安全的故障



任何人都可以帮我解决这个问题



MY APP CONFIG

Hi,

In my WPF Project i am using a WCF service . when my application keep idle for some time, then an exception "unsecured or incorrectly secured fault" happens

can anybody help me to solve this

MY APP CONFIG

<system.serviceModel>
    <bindings>
      <customBinding>
        <binding keepAliveEnabled="True" inactivityTimeout="01:10:00"/>
       
      </customBinding>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IService1"/>
          <binding name="BasicHttpBinding_IMedDataService" maxReceivedMessageSize="2147483647"  sendTimeout="infinite" receiveTimeout="infinite" closeTimeout="infinite" openTimeout="infinite"/>
      
      </basicHttpBinding>
      <wsHttpBinding>
       
      </wsHttpBinding>
     
    </bindings>
    <client>
      <endpoint address="http://localhost:4321/MedMaxDataService" binding="basicHttpBinding"
        bindingConfiguration="BasicHttpBinding_IMedDataService" contract="MedMax.DataService.IMedDataService"
        name="BasicHttpBinding_IMedDataService" />
      <endpoint address="http://localhost:9635/Service1.svc" binding="basicHttpBinding"
        bindingConfiguration="BasicHttpBinding_IService1" contract="ServiceReference1.IService1"
        name="BasicHttpBinding_IService1" />
    </client>
  </system.serviceModel>











问候

Kunjammu






Regards
Kunjammu

推荐答案


这篇关于在我的wpf项目中没有安全或不正确的安全故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 01:01