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