WCF gives an unsecured or incorrectly secured fault error

前端 未结 21 2541
予麋鹿
予麋鹿 2020-11-28 23:09

I am trying to consume a remote svc web service. I created the proxy class using svcutil.exe, and after that I\'ve added that class to my console application, b

21条回答
  •  青春惊慌失措
    2020-11-28 23:51

    I was getting this error due to the BasicHttpBinding not sending a compatible messageVersion to the service i was calling. My solution was to use a custom binding like below

     
      
        
          
                    
          
          
        
            
    
    

提交回复
热议问题