I have a ASP.net MVC application that is using portable class libraries that are shared by a xamarin application. When my web application starts now, it throws this error:
Method not found: 'Void Newtonsoft.Json.Serialization.DefaultContractResolver.set_IgnoreSerializableAttribute(Boolean)'.
I am using the Structure Map MVC nuget package and it was working fine until I referenced the PCL library.
It errors on this line of code:
GlobalConfiguration.Configuration.DependencyResolver = new StructureMapDependencyResolver(container);
I think it has something to do with the PCL class and the MVC both having references to JSON.net. Any ideas on how to fix this? I ended up rebuilding my machine to make sure only this version was in the GAC and no where else.
Any ideas