vendredi 1 mai 2015

WCF Service times out from windows 8 unit test project

When the application is run, WCF service works as expected.
When the exact same code is called from a unit test project, the error below occurs. Is there something special needed for windows 8 test projects to access the WCF service?

Result Message: Test method DataServiceTests.MyTest threw exception:

System.AggregateException: One or more errors occurred. ---> System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://localhost:8111/MyService/DataAccessService. The connection attempt lasted for a time span of 00:00:42.0131535. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 127.0.0.1:8111. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 127.0.0.1:8111

Note: WCF Service is installed as a windows service on the machine.

Aucun commentaire:

Enregistrer un commentaire