Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

process IoT Hub device-to-cloud messages failed in visual 2015 C#

$
0
0

hello, i created the IoT Hub in Azure and follow the tutorial in this link ( I code 100% like this)

https://azure.microsoft.com    /en-gb/documentation/articles/iot-hub-csharp-csharp-process-d2c/

but in section recieve interactive massage I run the app and it has an error. The client variable alway return the NULL and i dont Know how to fix this, i did exacly step by step in this tutorial. It error in this code

string connectionString = "Endpoint=sb://khoa-ns.servicebus.windows.net/;SharedAccessKeyName=listen;SharedAccessKey=9k5LLZ6iZcQiGAyk/MXxMlBZtW6aYcGxWH3DgrVHlnU=;EntityPath=d2ctutorial";
QueueClient Client = QueueClient.CreateFromConnectionString(connectionString, "d2ctutorial");

"

An unhandled exception of type 'System.ArgumentNullException' occurred in Microsoft.ServiceBus.dll

Additional information: Queue name should not be specified as EntityPath while using this Overload. Instead, please use 'path' parameter."

and the client variable return NULL value


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>