Comments (8)
Hi @mtheolog,
There is nothing wrong with your code. The error is most likely caused by a wrong connection string or a network connectivity error.
Here are some tips:
- Try to copy-paste the connection string from the Azure portal verbatim.
- Try running it on the device that has stable network connectivity -- for example your dev machine (does not have to be an IoT device like Raspberry Pi).
- Try changing the transport type in
CreateFromConnectionString
fromHttp1
toAmqp
orMqtt
. This will not solve the problem but might give a different error message that can give us a clue of what's going on.
from azure-iot-sdk-csharp.
@mtheolog - We assume the issue is solved. If that's no the case, please feel free to reopen. Thanks.
from azure-iot-sdk-csharp.
Same problem, Almost same code.
Not able to solve the problem through the way suggested.
from azure-iot-sdk-csharp.
@mtheolog please add more information: what Windows SDK version are you using?
Could you please provide network logs following instructions here: https://github.com/dotnet/corefx/blob/master/Documentation/debugging/windows-instructions.md#traces (easiest way is to use the scripts at https://github.com/dotnet/corefx/tree/master/src/Common/tests/Scripts/Tools). Also having a Wireshark trace taken at the same time with the ETW traces would enable us to look at network-level information.
For transient errors you can try the new retry policy: 42b32b5
from azure-iot-sdk-csharp.
Thank you for the quick response. I am working on a dragonboard 410c (windows 10 iot core). I enabled the Realtime ETW tracing providing the GUID of the application and caused a deliberate transient error with the scenario I described in my previous post. I did not get any events in the ETW tracing. Logman is not available in windows 10 iot core and I am not sure if I used correctly the ETW tracing.
I will have a look at the new retry policy you suggested.
from azure-iot-sdk-csharp.
You could be hitting https://github.com/dotnet/corefx/issues/20470.
Did you run the UWP application without compiling it using ILC? (Using the F5 / Debug option from Visual Studio instead of using Ctrl+F5 or building a Release version?)
Also, Windows IoT seems to have the xperf tool available: https://docs.microsoft.com/en-us/windows/iot-core/manage-your-device/eventtracing
from azure-iot-sdk-csharp.
OK thanks. I will try it.
from azure-iot-sdk-csharp.
Please reopen if still having issues.
from azure-iot-sdk-csharp.
Related Issues (20)
- How can parent child relationship be established between Iotdevices without utilizing azure Iotedge ?? HOT 2
- Json Format Exception to get payload from Direct Method Request and Twin Json Wrongly formatted
- [Bug Report] Cannot invoke direct methods with payload in IotEdge devices. HOT 8
- [Bug Report] [v2] [IoTSDK] ModuleClient.SendMessageToRoute() not firing IncomingMessageCallback when routing M2M
- IoT Edge not connecting to IOT Hub HOT 2
- Route data directly from opc publisher to rabbit mq is possible? HOT 2
- [Technical Question] [v2] How to set Properties on TelemetryMessage HOT 1
- [Bug Report] Upgrade dependency on Microsoft.Rest.ClientRuntime to Azure.Core HOT 2
- Microsoft.Azure.Devices.Client v1.42.0 has indirect security vulnerabilies HOT 3
- AOT-compatible Microsoft.Azure.Devices.Client HOT 1
- SDK version :2.0.0-preview007 CreateAsync() Json Error
- [Bug Report] WebSockets not working on Web Assembly HOT 1
- Latest device client does not connect over MQTT HOT 9
- Errors while running e2e tests with .NET 8.0 HOT 1
- How to use tpm private key for TLS with IoT Hub SDK (Not TPM Attestation) - for DeviceAuthenticationWithX509Certificate HOT 4
- [Bug Report] AMQP DeviceClient is slow to respond to device being disabled
- Desired Properties callback not triggering after a reconnect HOT 5
- [feature request] Move to System.Text.Json to support AOT HOT 2
- [Bug Report] DeviceClient.SendEventAsync takes over one minute after update from 1.42.0 to 1.42.2 HOT 7
- [BUG] error CS0426: The type name 'Create' does not exist in the type 'ServiceClient' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-iot-sdk-csharp.