The server has rejected the client credentials, WCF as Windows Service

后端 未结 4 1581
误落风尘
误落风尘 2020-12-31 10:40

I am able to connect to my WCF service with the Win-form application, however i am not able to do so with my windows service. Whenever i fire open() to the proxy it throws t

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 11:01

    Thanks for all your help. i got the answer after few days of some research and trial n error method :) well i know i am late to post the answer, but i think its better late than never.

    So Here's the solution

    i had to make some changes in my configuration files (both client & server)

    On the client side i added tag as shown below

      
        
          
            
              
              
             
                
                
              
            
          
        
        
          
          
        
      
    

    and also added the same tag on the server side (WCF service configuration), as shown below

    
      
        
          
             
            
            
          
        
      
    
    

    Hope this help a person in need :)

    So the KEY is to make the tag same over the client and the server configuration files.

提交回复
热议问题