문제

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