Portable class Library

May 7, 2012 at 5:38 PM

Hey, sorry for my bad english...

I have 3 projects: a silverlight, a ASP.NET and a "portable class Library". The portable is shared bewteen the silverlight and asp.net. Now I needed some json magic powers on the shared library so I added to the portable project the json.net assembly (from the "portable" folder on the zip). 

The silverlight project has a reference to json.net (it needs it) and the portable class has one too. When I run the application, when I call a method of my portable class, I get the exception:

"Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified."

To reproduce this one needs to only create a silverlight and a portable class project, both having a reference to json.net. Has anyone seen this? Am I doing something wrong?