Originally posted by **chandra-rayaprol** December 12, 2023
The method IotHubServiceClient.Devices.CreateAsync(new Device("deviceId");
is throwing an exception:
Newtonsoft.Json.JsonReaderException: Could not convert string to DateTimeOffset: 0001-01-01T00:00:00. Path 'connectionStateUpdatedTime with ...
Could you please help me in resolving this issue?
.NET version 8
Microsoft.Azure.Devices SDK version :2.0.0-preview007
Discussed in https://github.com/Azure/azure-iot-sdk-csharp/discussions/3409