Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
463 stars 493 forks source link

SDK version :2.0.0-preview007 CreateAsync() Json Error #3411

Open timtay-microsoft opened 8 months ago

timtay-microsoft commented 8 months ago

Discussed in https://github.com/Azure/azure-iot-sdk-csharp/discussions/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