How to solve “The ChannelDispatcher is unable to open its IChannelListener” error?

前端 未结 7 1159
既然无缘
既然无缘 2021-01-11 11:51

I\'m trying to communicate between WCF hosted in Windows Service and my service GUI. The problem is when I\'m trying to execute OperationContract method I\'m getting

7条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-11 11:52

    I know you already solved the problem, but nobody pointed out why it solved the problem, and what caused the error. The issue w/ your first code was that your program (class Program) specified an open call to the class that was itself "class Program", in other words, it's RECURSIVE. No wonder it was giving the unable to open the listener error! This was a good one! :-)

提交回复
热议问题