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
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.