Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find DataContractJsonSerializer from an Asp.Net Mvc application

I can't get access to the DataContractJsonSerializer method from System.Runtime.Serialization.Json

If I do:

using System.Runtime.Serialization.Json;

I get an error...

How can I access this in my Asp.Net Mvc app so I can use the DataContractJsonSerializer method

like image 799
Matt Avatar asked Jul 14 '09 18:07

Matt


1 Answers

Make sure you've referenced the DLL where this type lives: System.ServiceModel.Web.dll

like image 197
Brad Wilson Avatar answered Oct 22 '22 13:10

Brad Wilson