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?)””
no. your solution did not solve my problem.
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
no it did not solve
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
Ha funzionato perfettamente, grazie mille!
Hi SgtKill,
thank you for your comment. If you want you can subscribe to this blog to receive automatically updates.
It works……thanks…
It solved my problem perfectly. Thanks.
Quick fix for my problem.Thank you!
Worked thank you.
Thanks! I think it’s useful.