WCF socket error 10045
A colleague of mine has an application that hosts a simple WCF service with a net.tcp endpoint. I can add a service reference for any application I create using the net.tcp address: //192.168.0.22: 9999 / GSS-POS / QueryDispatcher / mex
However, when he tries to add a service reference to an application running on his machine, he immediately gets socket error 10045. We tried to use as net.tcp: // localhost: 9999 / GSS-POS / QueryDispatcher / MEX
and
net.tcp: //192.168.0.22: 9999 / GSS-POS / QueryDispatcher / MEX
He tried to reinstall Visual Studio 2008, Service Pack 1 and XP Service Pack 3 all to no avail. Can anyone please provide any pointers?
UPDATE: It looks like it has something to do with Visual Studio. Using WCF Client test application, you can see this service. VS seems to be having a problem adding a service link.
UPDATE 2: Adding link since VS 2008 works with named pipe and http transport. The problem only appears when trying to add a service reference that uses the net.tcp endpoint.
Respectfully,
Simon
source to share
I don't have an answer for you, but code 10045 represents WSAEOPNOTSUPP (operation not supported) which, according to MSDN , means:
The attempt made is not supported for the referenced object type. This usually happens when a socket descriptor is on a socket that cannot support this operation while trying to accept a connection on a datagram.
source to share
Yuval Lowe's book says tcp messages are "optimized" only for WCF-> WCF. It may have something to do with your problem.
source to share