Subject: Problem to connect local network.
Hi
sorry for my poor english.
I am with problem to connect miniclient in a local net.
I am using the following code.
private void cmdLogin_Click(object sender, System.EventArgs e)
{
if (txtJid.Text.Length > 0 && txtPassword.Text.Length > 0)
{
Jid jid = new Jid(txtJid.Text, txtServer.Text, txtResource.Text);
_connection.Server = jid.Server; //192.168.0.253
_connection.Username = jid.User; //antonio@tecnos
_connection.Password = txtPassword.Text;
_connection.Resource = jid.Resource;
_connection.Priority = (int) numPriority.Value;
_connection.Port = int.Parse(txtPort.Text);
_connection.UseSSL = chkSSL.Checked;
_connection.UseCompression = true;
//_connection.UseStartTLS = false;
_connection.RegisterAccount = chkRegister.Checked;
this.DialogResult = DialogResult.OK;
SaveSettings();
this.Close();
}
else
{
MessageBox.Show("Nome de Usuário e Senha devem estar preenchidos!");
}
}
But when I try to connect I receive the following message from error.
<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
As I can decide this.
sorry for my poor english.
I am with problem to connect miniclient in a local net.
I am using the following code.
private void cmdLogin_Click(object sender, System.EventArgs e)
{
if (txtJid.Text.Length > 0 && txtPassword.Text.Length > 0)
{
Jid jid = new Jid(txtJid.Text, txtServer.Text, txtResource.Text);
_connection.Server = jid.Server; //192.168.0.253
_connection.Username = jid.User; //antonio@tecnos
_connection.Password = txtPassword.Text;
_connection.Resource = jid.Resource;
_connection.Priority = (int) numPriority.Value;
_connection.Port = int.Parse(txtPort.Text);
_connection.UseSSL = chkSSL.Checked;
_connection.UseCompression = true;
//_connection.UseStartTLS = false;
_connection.RegisterAccount = chkRegister.Checked;
this.DialogResult = DialogResult.OK;
SaveSettings();
this.Close();
}
else
{
MessageBox.Show("Nome de Usuário e Senha devem estar preenchidos!");
}
}
But when I try to connect I receive the following message from error.
<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
As I can decide this.