We are using azure function SDK in visual studio 2017 in .Net Frame work 4.6. We have added nuget packages
Microsoft.Azure.Devices.Shared 1.15.1 Newtonsoft.Json 12.0.1
AzureFunctions.Autofac 3.0.7 (for dependency injection )
when creating a instance of Twin we are getting a the following exception message
"message": "Could not load file or assembly 'Newtonsoft.Json,Version=10.0.0.0, > Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.",
We tried downgrading the package to
Newtonsoft.Json 10.0.1
Then we are getting the same error by replacing missing Newtonsoft.Json version 10.0.1 with Newtonsoft.Json version 12.0.1 .
this is the code we are following .
Twin updatetwin = new Twin();
updatetwin.ETag = "*";
var body = await RequestBody(req);
var newtwin =JsonConvert.DeserializeObject<PropertyViewModel>(body);
