azure - Microsoft.Azure.Devices.dll 中发生类型 'System.FormatException' 的未处理异常

标签 azure iot azure-iot-hub azure-iot-sdk azure-iot-suite

我指的是这个tutorial创 build 备身份。但是,出现如下异常:

enter image description here

这是我的配置文件:

enter image description here

编辑:
App.Config 中的 Instrumentation 键和值是什么?我刚刚复制了示例代码。但是,如果我使用的是真实设备,我可以从哪里获取它?

我是否缺少任何 SDK 或其他内容? 我需要下载额外的东西吗?该教程没有任何建议。 即使我运行来自 Github 的示例代码也会遇到相同的错误。

最佳答案

以下屏幕片段显示了此错误的原因,例如connectionString

Error

使用 Azure IoT 中心的连接字符串 - 请参阅教程部分创建 IoT 中心步骤 6。

关于azure - Microsoft.Azure.Devices.dll 中发生类型 'System.FormatException' 的未处理异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45993475/

相关文章:

azure - Azure IoT Hub可以注册多少台设备?

azure - 在 azure 管道上拉取并运行 Linux docker 镜像

facebook - URL 被阻止 : This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings?

mongodb - 如何借助 Azure Databricks 高效地将 MongoDB 迁移到 Azure CosmosDB?

mongodb - AWS : How to save Streaming data to database hosted on EC2 ( ex. MySQL/MongoDB)

streaming - 最大喷嘴容量

azure - 无法从我的逻辑应用获取 Azure Active Directory 组

ssl - 物联网无法连接到使用 MQTT+TLS 的服务器

azure - 如何将设备上传的旧数据上传到 Azure IoT 中心

Azure IoT 边缘队列深度