Subject: Events not firing.
Hello,
I am creating a simple login application using agsXMPP v1.1.0.0. The problem i am facing is that, am not able to fire any event. Here is the code that i am working with,
And yea, i am trying only wrong username and wrong password. And hence OnAuthError should fire, but it is not !
Am I missing something ?
Ok, now i even added that code to get xml received and send from me like this,
even doing this is not firing OnReadXml and OnWriteXml, and my rtfdebug remains empty entire time. I even set a breakpoint at rtfDebug.AppendText("Recv: " + xml); and rtfDebug.AppendText("Send: " + xml); but it never executes ! Any Idea how to make this work ?
I tried something more, I removed agsxmpp v1.1.0.0 refrence and download a fresh and latest copy of agsxmpp v1.3.1.0 and still nothing worked !!
Did one more thing, I added the same refrence to Visual Basic 2010 and It is working fine there but not working in c# !!!! Am i missing something ?
I am creating a simple login application using agsXMPP v1.1.0.0. The problem i am facing is that, am not able to fire any event. Here is the code that i am working with,
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using agsXMPP;
- using System.IO;
- using agsXMPP.Xml.Dom;
- using agsXMPP.protocol.client;
- using agsXMPP.Collections;
- using System.Xml;
- using System.Collections.ObjectModel;
- namespace Nuke_Mobileserver
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void checkBox1_CheckedChanged(object sender, EventArgs e)
- {
- {
- h.AutoResolveConnectServer = false;
- h.Server = "nimbuzz.com";
- h.ConnectServer = "o.nimbuzz.com";
- h.Port = 5222;
- h.UseSSL = true;
- h.Open(textbox1.text, textbox2.text,textbox3.text, 2);
- }
- }
- private void hahaha(object sender, agsXMPP.Xml.Dom.Element e)
- {
- if (base.InvokeRequired)
- {
- }
- else
- {
- checkBox1.Text = "*Wrong password*";
- }
- }
Am I missing something ?
Ok, now i even added that code to get xml received and send from me like this,
- private void XmppCon_OnReadXml(object sender, string xml)
- {
- rtfDebug.AppendText("Recv: " + xml);
- }
- private void XmppCon_OnWriteXml(object sender, string xml)
- {
- rtfDebug.AppendText("Send: " + xml);
- }
I tried something more, I removed agsxmpp v1.1.0.0 refrence and download a fresh and latest copy of agsxmpp v1.3.1.0 and still nothing worked !!
Did one more thing, I added the same refrence to Visual Basic 2010 and It is working fine there but not working in c# !!!! Am i missing something ?