Question

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

Was it helpful?

Solution

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

OTHER TIPS

Right Click in Project, Add Reference...

Search for System.Runtime.Serialization

Click Ok/Add

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top