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

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

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

in Italian:

Il tipo o il nome dello spazio dei nomi ‘Json’ non esiste nello spazio dei nomi ‘System.Runtime.Serialization’; 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.

13 replies on “Visual Studio – “The type or namespace name ‘Json’ does not exist in the namespace ‘System.Runtime.Serialization’ (are you missing an assembly reference?)””

Hi Tom,
thank you for your comment. Have you also added “using” or “import” inside your file? Is the error message always the same?
Let me know

eclipses on July 2, 2012 at 12:40 am

Hi az,
thank you for your comment. Have you also added “using” or “import” inside your file? Is the error message always the same?
Let me know

I got the same error. and adding reference didn’t help solve the problem. and the error message remained the same.
any suggestions?
:Error 1 The type or namespace name ‘Json’ does not exist in the namespace ‘System’ (are you missing an assembly reference?)

Hi shiroki,
thank you for your comment. Have you also added “using” or “import” inside your file? You have to add it inside every file when you use Json.
Let me know

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.