'Deserialization Error of Member 'HelpURL' was not found

Getting the exception

Member 'HelpUrl' was not found

while trying to Deserialize object. Below is the code i am trying to execute.

Log objectLog  = (Log) JsonConvert.DeserializeObject(
                       JObject.Parse(msg.Body)["Message"].ToString());

I have tried annotating the Log class as [Serializable], creating constructor for Log class with SerializationInfo info, StreamingContext context

Why is it failing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source