Subject: Not-authorized error during presence request and send message
Hi,
I am creating a sample .Net Project to send message to other users. I am using agsXMPP Library in .Net and OpenFire as my XMPP Server. I am using the code attached in the file. When I run this application, Authentication is happening during connection.
But it is giving not authorized error for when the request for presence is done and also message is not received by other users. Below is the error xml received in xmpp_OnPresence.
I am not able to identify where I am making the mistake.
Please help in identifying where I am doing wrong.
I am creating a sample .Net Project to send message to other users. I am using agsXMPP Library in .Net and OpenFire as my XMPP Server. I am using the code attached in the file. When I run this application, Authentication is happening during connection.
But it is giving not authorized error for when the request for presence is done and also message is not received by other users. Below is the error xml received in xmpp_OnPresence.
- <presence xmlns="jabber:client" type="error" to="openffire_fdnsname/85esfz5yqw">
- <status />
- <priority>5</priority>
- <error type="auth" code="401">
- <not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
- </error>
- </presence>
I am not able to identify where I am making the mistake.
Please help in identifying where I am doing wrong.
The author has attached one file to this post:

You have no permission to open this file.