I had this issue in one of my projects, where I found that I had set my project’s .Net Framework version to 4.0 and async tasks are only supported in .Net Framework 4.5 onwards.
I simply changed my project settings to use .Net Framework 4.5 or above and it worked.
More Related Contents:
- Collection was modified; enumeration operation may not execute
- WCF named pipe minimal example
- How to programmatically connect a client to a WCF service?
- Calling async methods from a WCF service
- How can I return a custom HTTP status code from a WCF REST method?
- WCF Transport vs Message
- Is there some way to handle async/await behind an ASMX service?
- How to retrieve the LoaderException property?
- Queuing in OneWay WCF Messages using Windows Service and SQL Server
- Large WCF web service request failing with (400) HTTP Bad Request
- WCF Service Client: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding
- Simple Automapper Example
- WCF Error – Could not find default endpoint element that references contract ‘UserService.UserService’
- Can we create custom HTTP Status codes?
- ASP.NET 5 add WCF service reference
- WCF service attribute to log method calls and exceptions
- How to add cross domain support to WCF service
- Get All IP Addresses on Machine
- C# – WCF – inter-process communication
- Using MediaElement to play video from Stream
- The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication
- What’s the difference between WCF Web API and ASP.NET Web API
- The content type application/xml;charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8)
- Getting a POST endpoint to work in self-hosted (WebServiceHost) C# webservice?
- can not await async lambda
- How to handle WCF exceptions (consolidated list with code)
- What steps do I need to take to use WCF Callbacks?
- SqlConnection Thread-Safe?
- Signing SOAP messages using X.509 certificate from WCF service to Java webservice
- Is TLS 1.1 and TLS 1.2 enabled by default for .NET 4.5 and .NET 4.5.1?