1

これは従来の .NET で正常に動作します。

string json = JsonConvert.SerializeObject(new Exception("Test"));

ただし、WinRT (RP) では次のように失敗します。

Error getting value from 'TargetSite' on 'System.Exception'.
The API 'System.Exception.get_TargetSite()' cannot be used on the current platform. See http://go.microsoft.com/fwlink/?LinkId=248273 for more information.

編集:例外をワイヤ経由で転送し、バックエンド側で逆シリアル化する必要もあります。

誰にも回避策はありますか?

4

0 に答える 0