Azure/azure-iot-sdk-csharp

SDK version :2.0.0-preview007 CreateAsync() Json Error

timtay-microsoft opened this issue · 0 comments

Discussed in #3409

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