Common WCF Exception : Connection Unexpectedly Closed

后端 未结 12 1018
耶瑟儿~
耶瑟儿~ 2021-02-05 17:19

I have three projects. One is a WCF Services Project, one is a WPF Project, and one is a Microsoft Unit Testing Project. I setup the WCF Services project with a data object th

12条回答
  •  滥情空心
    2021-02-05 18:09

    I could be way off, but it might be a security thing... I've gotten that error before, and I solved it... but I was up for days trying to get a lot of different bugs worked out.

    I have a sample article doing something basic, but I'm using net.tcp (with security set to "None") here: Duplex WCF Services Hosted in IIS Using Net.Tcp

    Also, where are you getting the error... is it on the ".Close()" line, or the ".GetTasks().ToString()" line?

    Another thing you can check is to simply telnet to localhost on port 9999 to see if the service is listening for incomming connections altogether.

提交回复
热议问题