using System.Runtime.Serialization.Json; I stopped issuing an error, but:
DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(Bsmessage)); Still not happy with something: 
How to fix?
The DataContractJsonSerializer type is in the System.Runtime.Serialization assembly, not in the System.ServiceModel.Web .
You have connected the wrong link (the wrong Reference) in the first screenshot.
Source: https://ru.stackoverflow.com/questions/511376/
All Articles