Unable to host WCF Service, Throwing an error as System.Threading.Tasks is not supported

StackOverflow https://stackoverflow.com/questions/22585833

Вопрос

In VS 2013, I am setting up the WCF service. I am getting an error as " This operation is not supported in the WCF Test Client because it uses System.Threading.Tasks "

enter image description here

Это было полезно?

Решение

If the synchronous methods are working then your service is working fine. The problem you are having is the fact that the WCF test client does not support methods that return a Task, you must either use the synchronous methods with the built in client or write your own client that uses the asynchronous methods to test your service..

There is nothing you can do to "fix" it to make the WCF test client work with asynchronous methods.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top