Categories
7.5 C#.NET Microsoft VB.NET Visual Studio Windows Phone

‘DataContractJsonSerializer’ does not exist in the namespace ‘System.Runtime.Serialization.Json’

The type or namespace name ‘DataContractJsonSerializer’ does not exist in the namespace ‘System.Runtime.Serialization.Json’ (are you missing an assembly reference?)

in Italian:

Il tipo o il nome dello spazio dei nomi ‘DataContractJsonSerializer’ non esiste nello spazio dei nomi ‘System.Runtime.Serialization.Json’; probabilmente manca un riferimento a un assembly

Solution:

Add the following References to your project:

System.Runtime.Serialization
System.ServiceModel.Web

In Solution Explorer, right-click on the project node and click Add Reference to select the dll files.
Remember to add using or Imports lines inside your file.

Did my solution solve your problem? Leave a reply.

2 replies on “‘DataContractJsonSerializer’ does not exist in the namespace ‘System.Runtime.Serialization.Json’”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.