MQTT throw MqttClientDisconnectedException exception when Publish message to Server
Open
question
- Dominant language
- C#
- Stars
- 5.1k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe your question
I am using MQTTnet version 4.1.4.563 for .Net Framework 4.5.2 .
When I published message to server, my program threw exception : MQTTnet.Client.MqttClientDisconnectedException: The MQTT client is disconnected. My conection to MQTT Server is fine, and I also using variable IsConnected to check, (before sending message), it always returns true. Can you help me explain my situation?
Here is my exception.

### Which project is your question related to?
- Client
- Server
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.