DataContractJsonSerializer class not found RRS feed

  • Question

  • Hello everyone,

    I am having problem working with DataContractJsonSerializer class, and it is not found in the System.Runtime.Serialization.Json namespace. Please help me with it. It's urgent.


    Tuesday, December 12, 2017 1:52 PM


  • Did you add a reference to the System.Runtime.Serialization assembly first?

    The easiest way to resolve identifiers is to simply type in the identifier name, then right click and in the quick actions you should see one of several options.

    • Using <namespace> - automatically adds the appropriate namespace for the identifier, the appropriate assembly would have already been referenced
    • <namespace>.<type> - replaces the simple identifier with the full namespace name, eliminating the need for the using statement, appropriate assembly would have already been referenced
    • Using <namespace> from <assembly> - same as the first option but you aren't yet referencing the assembly so it'll automatically add the reference as well (only appears for known assemblies and projects in the solution)
    • Install package <package> - you don't have a reference to the assembly, it is not part of the framework but there is a known NuGet package for it; this option auto-downloads the package and adds a reference to your project (only appears for NuGet packages in a special cache or that you've downloaded before)

    Michael Taylor

    Tuesday, December 12, 2017 3:08 PM