Webロールで実行されているAzureにWCFサービスを展開しました。Azureは標準です(したがって、.NET 4.0を実行します)。次のエラーが発生します。
Type 'System.Threading.Tasks.Task' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
- 私のクラスライブラリは.NET4を対象としています
- Asyncターゲティングパックへの参照があります
エミュレータを介してローカルマシンで実行されます。私のローカルマシンは、.NET4.5を搭載したWindows8です。
これは次のようになります:http: //forums.lhotka.net/forums/t/11585.aspx
これは可能ですか、それとも.NET 4.5をAzureに移行する必要がありますか?