The socket connection was aborted - CommunicationException

后端 未结 7 686
我寻月下人不归
我寻月下人不归 2020-12-08 10:54

Originally:

  • I thought this was a circular reference problem........turns out it\'s not.
  • The problem arose from having not configured
7条回答
  •  攒了一身酷
    2020-12-08 11:03

    In my case i was trying to instantiate a Wcf with net tcp. So, if in the bindings section of your web.config you have the "netTcpBinding" configurated like this

    
        
            
                
                
                
            
        
    
    

    Then, you need to configurate the service section defining the endpoints with their contract attribute using the namespace of your services interface and put the baseAddres as well, something like this

    
      
        
        
        
    
        
          
            
            
                       
          
        
      
    
    

    I spent two days with this problem, but this was the only thing that worked for me.

提交回复
热议问题