Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attempting to deserialize an object using JSON.NET in Windows 10 Universal App fails with FileNotFoundException

I'm using the Windows 10 Preview SDK, and attempting to port forward some code that depends on JSON.NET. It's failing with the following exception:

{"Could not load file or assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The system cannot find the file specified.":"System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes"}

I can see that namespace present in the Object Browser, so I'm not sure what's missing or how to resolve this error. This seems to be blocking my app from moving over.

like image 481
ehdv Avatar asked May 05 '15 01:05

ehdv


2 Answers

Current workaround:

Use this version: 6.0.8

Important: You have to check ALL projects on your solution. If any of them have a 7.0.x version, downgrade it to 6.0.8.

Hope the fix will arrive soon.

like image 181
Bruno Lemos Avatar answered Sep 21 '22 08:09

Bruno Lemos


This is a bug in NuGet that was fixed between RC and RTM releases. https://github.com/NuGet/Home/issues/454.

We might be able to ship an update on the gallery before RTM

like image 25
Yishai Galatzer Avatar answered Sep 19 '22 08:09

Yishai Galatzer