Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

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>





Regards
Kunjammu
Posted
Updated 4-Dec-14 20:46pm
v3

1 solution

There are a number of issues that it can be and you'll need to troubleshoot to figure it out since we can't do that for you.

See http://stackoverflow.com/questions/1484601/wcfan-unsecured-or-incorrectly-fault-error[^] for some possible causes.
 
Share this answer
 
Comments
Kunjammu 5-Dec-14 2:43am    
mY APP CONFIG FILE IS UPDATED IN MY QUERY

I AM USING LOCALHOST

PLZ HELP ME
ZurdoDev 5-Dec-14 7:28am    
Since I don't have access to your system and since this is not a code problem you'll need to do the troubleshooting work yourself or post to a technical support forum.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900