XmppClientConnection OnLogin 事件从不在 OnIq 之后触发
XmppClientConnection OnLogin event never firing after OnIq
这是我的设置:
Jid jid = new Jid ( "*******@jabber.ua" );
XmppClientConnection connection = new XmppClientConnection ( jid.Server );
connection.Open ( jid.User, "**********" );
调用 connection.Open 后,一切正常,即 connection.XmppConnectionState 从 连接到连接到保护到验证到已验证 到绑定。在 connection.XmppConnectionState 变成 Securing 和 Authenticating 之间有一个 ArgumentNullException[=根据输出,35=] 被抛入 mscorlib.dll,但它没有显示在其他地方。在 connection.XmppConnectionState 命中 Binding 后,发生以下交换:
<iq id="agsXMPP_1"
type="set"
to="jabber.ua">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<resource>agsXMPP</resource>
</bind>
</iq>
<iq xmlns="jabber:client"
id="agsXMPP_1"
type="error"
from="jabber.ua">
<error type="cancel">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</iq>
并且在 被传递到 connection.OnIq 事件之后,一切都停止了,即没有触发 XmppClientConnection 事件,没有引发异常, 在关闭连接之前什么都不会发生。
看起来您 运行 是一个韵律服务器。 Prosody returns 当使用 to 属性发送 BindIq 时出现此错误。此问题不久前已在 agsXMPP 中修复。请使用源存储库中的最新代码。
这是我的设置:
Jid jid = new Jid ( "*******@jabber.ua" );
XmppClientConnection connection = new XmppClientConnection ( jid.Server );
connection.Open ( jid.User, "**********" );
调用 connection.Open 后,一切正常,即 connection.XmppConnectionState 从 连接到连接到保护到验证到已验证 到绑定。在 connection.XmppConnectionState 变成 Securing 和 Authenticating 之间有一个 ArgumentNullException[=根据输出,35=] 被抛入 mscorlib.dll,但它没有显示在其他地方。在 connection.XmppConnectionState 命中 Binding 后,发生以下交换:
<iq id="agsXMPP_1"
type="set"
to="jabber.ua">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<resource>agsXMPP</resource>
</bind>
</iq>
<iq xmlns="jabber:client"
id="agsXMPP_1"
type="error"
from="jabber.ua">
<error type="cancel">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</iq>
并且在 被传递到 connection.OnIq 事件之后,一切都停止了,即没有触发 XmppClientConnection 事件,没有引发异常, 在关闭连接之前什么都不会发生。
看起来您 运行 是一个韵律服务器。 Prosody returns 当使用 to 属性发送 BindIq 时出现此错误。此问题不久前已在 agsXMPP 中修复。请使用源存储库中的最新代码。