Type 'System.Threading.Tasks.Task`1[System.String]' cannot be serialized

后端 未结 2 1084
情深已故
情深已故 2021-01-07 14:14

As per the following article, I have defined my service contract as

http://blogs.msdn.com/b/endpoint/archive/2010/11/13/simplified-asynchronous-programming-model-in

相关标签:
2条回答
  • 2021-01-07 15:03

    The support for Task-based asynchronous operations is only available in the version 4.5 of the .NET Framework Unless you're using the developer preview which was made available in mid-September, this won't work.

    0 讨论(0)
  • 2021-01-07 15:15

    Here is a good answer: http://mylifeandcode.blogspot.com/2012/12/the-cause-and-solution-for.html

    Seems need to re-generate proxy classes - instead of "Generate task-based operations" need to choose "Generate asynchronous operations".

    0 讨论(0)
提交回复
热议问题