weixin_39612733
weixin_39612733
2020-12-27 14:37

c# DPS X.509 deviceRegistration error for indivisual enrollment

ProvisioningClient RegisterAsync . . . Microsoft.Azure.Devices.Provisioning.Client.ProvisioningTransportException: AMQP transport exception ---> Microsoft.Azure.Amqp.AmqpException: {"errorCode":401002,"trackingId":"b3990321-f238-414d-96ad-dd52300db848","message":"IotHubUnauthorizedAccess","timestampUtc":"2019-04-11T06:59:58.9485669Z"} at Microsoft.Azure.Amqp.AsyncResult.EndTAsyncResult at Microsoft.Azure.Amqp.AmqpObject.OpenAsyncResult.End(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpObject.EndOpen(IAsyncResult result) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Provisioning.Client.Transport.AmqpClientLink.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerAmqp.CreateLinksAsync(AmqpClientConnection connection, String linkEndpoint, String productInfo) at Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerAmqp.RegisterAsync(ProvisioningTransportRegisterMessage message, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerAmqp.RegisterAsync(ProvisioningTransportRegisterMessage message, CancellationToken cancellationToken)

该提问来源于开源项目:Azure/azure-iot-sdk-csharp

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39612733 weixin_39612733 3月前

    are you still seeing any issues here?

    No it was resolved from my side..Thanq

    点赞 评论 复制链接分享
  • weixin_39932692 weixin_39932692 3月前

    Thanks . Please reopen if you are still seeing issues.

    点赞 评论 复制链接分享
  • weixin_39710361 weixin_39710361 3月前

    -microsoft, , , thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey

    点赞 评论 复制链接分享
  • weixin_39610415 weixin_39610415 3月前

    This provisioning client attempted to connect to the service without providing any credentials. The client must present a TPM, X.509 or SAS token credential in order to connect successfully to the service.

    点赞 评论 复制链接分享
  • weixin_39603132 weixin_39603132 3月前

    Can you give us more details ?

    OS, version, SKU and CPU architecture used:

    Application's .NET Target Framework :

    Device:

    SDK version used:

    点赞 评论 复制链接分享
  • weixin_39687542 weixin_39687542 3月前

    are you still seeing any issues here?

    点赞 评论 复制链接分享
  • weixin_39612733 weixin_39612733 3月前

    This provisioning client attempted to connect to the service without providing any credentials. The client must present a TPM, X.509 or SAS token credential in order to connect successfully to the service.

    This was done by providing X.509 certificate

    点赞 评论 复制链接分享