MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.42k forks source link

Does IoTC .NET SK support .NET framework 4.7 or lower? #90164

Closed AlanPintor-git closed 2 years ago

AlanPintor-git commented 2 years ago

Hello,

Does IoTC .NET SK support .NET framework 4.7 or lower? because I am getting MQTT transport exception on 4.7 version, the same code is working fine with .NET CORE. If you need more information please let me know.

Thank you in advance, Alan

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

SatishBoddu-MSFT commented 2 years ago

@AlanPintor-git Please visit the azure-iot-sdk-csharp SDK page to log or report any issues With SDK. Please add more details to your report while you submit the issue on SDK page! (What you were trying to do? What error encountered? Any Error screenshots? Any Logs?)

image

image

Please visit the NuGet package gallery and search for the package to know more about it's dependencies!

https://www.nuget.org/packages/Microsoft.Azure.Devices.Client

Thanks for understanding! We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Please also do visit Microsoft Q&A the home for technical questions and answers at Microsoft.

ziaddiab-globaldws commented 2 years ago

@SatishBoddu-MSFT , Thank you so much for such detailed answer. The problem we are facing with .NET framework 4.7 is, we are getting an exception "MQTT transport exception". The Sample code we are using is developed in .NET Core and it is working fine. You can find the sample code at given link

DPS Service sample code C#: https://docs.microsoft.com/en-us/azure/iot-central/core/tutorial-connect-device?pivots=programming-language-csharp

Following is attached screen shoot of exception image

Can you share the source code of the application you ran on .NET 4.7. It will help a lot, Thanks

ziaddiab-globaldws commented 2 years ago

@KrishnaG-MSFT , @SatishBoddu-MSFT Can someone please help us here. Can you share the source code of the application you ran on .NET 4.7 Thanks

SatishBoddu-MSFT commented 2 years ago

Hello @ziaddiab-globaldws Wanted to know the owner of this issue? Did you try login from different accounts to respond to this issue?

ziaddiab-globaldws commented 2 years ago

Hi @SatishBoddu-MSFT , the owner is @AlanPintor-git and I work with him on this issue

SatishBoddu-MSFT commented 2 years ago

Sure, let me share the code snippet!

SatishBoddu-MSFT commented 2 years ago

Hello @ziaddiab-globaldws @AlanPintor-git Please refer to the below Github page to access the code snippet. https://github.com/SatishBoddu-MSFT/SocialNode

ziaddiab-globaldws commented 2 years ago

Thank you @SatishBoddu-MSFT

SatishBoddu-MSFT commented 2 years ago

Please let us know if you need further help in this matter. We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Please also do visit Microsoft Q&A the home for technical questions and answers at Microsoft.

ziaddiab-globaldws commented 2 years ago

@SatishBoddu-MSFT , This code is for sending the telemetries to IoT Central. We need the sample code for provisioning the device using .NET 4.7

ziaddiab-globaldws commented 2 years ago

@AshokPeddakotla-MSFT , @SatishBoddu-MSFT , This code you shared is for sending the telemetries to IoT Central. We need the sample code for provisioning the device using .NET 4.7. Thanks

SatishBoddu-MSFT commented 2 years ago

@AshokPeddakotla-MSFT Ashok Peddakotla FTE , @SatishBoddu-MSFT Satish Boddu FTE , This code you shared is for sending the telemetries to IoT Central. We need the sample code for provisioning the device using .NET 4.7. Thanks

Sure, we are looking into this!

ziaddiab-globaldws commented 2 years ago

@SatishBoddu-MSFT , Do you have an update on this issue?