Cannot find DataContractJsonSerializer from an Asp.Net Mvc application

前端 未结 2 638
夕颜
夕颜 2021-02-08 12:13

I can\'t get access to the DataContractJsonSerializer method from System.Runtime.Serialization.Json

If I do:

using System.Runti         


        
相关标签:
2条回答
  • 2021-02-08 12:53

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

    0 讨论(0)
  • 2021-02-08 13:10

    Right Click in Project, Add Reference...

    Search for System.Runtime.Serialization

    Click Ok/Add

    0 讨论(0)
提交回复
热议问题