Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Page: previous  1  2 
Avatar
Stranger #16
Member since Aug 2007 · 7 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 2447
Well, Alex actually sometimes I can connect and can send and receive mssage using MiniClient from my Office PC.But most of the time I can't.
I have attached the webclient I'm working on.But it's a very basic one.I have used Ajax to call a page at a regular interval to get responses from Jabber server.
The thing is that I can connect to my local Jabber server and receive msg but when wanna connect to google talk or any other public Jabber server I don get any of the events get fired- not even onLogin.
I think I might be missing smthing.Do u think the way I'm poling is ok or u have any other suggestion ?
The author has attached one file to this post:
talkTest.rar 215.3 kBytes
You have no permission to open this file.
Avatar
Alex #17
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
i can't open your project file.
I took a look at the cs files but found no error.
Can you post a new zip archive with a working sln file? So i can try to debug this on my machine.

Alex
Avatar
Stranger #18
Member since Aug 2007 · 7 posts
Group memberships: Members
Show profile · Link to this post
Alex,
sln file added.
Please, I want some precise help.
The author has attached one file to this post:
talkTest.rar 215.3 kBytes
You have no permission to open this file.
Avatar
Alex #19
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
there are still no project files included.
Avatar
Stranger #20
Member since Aug 2007 · 7 posts
Group memberships: Members
Show profile · Link to this post
Alex,what IDE you are using to see the code actually ?! With Visual Studio 2005 you are suppose to be able to get access the site !! Project file is only required when we are developing an Web Application-what I've included is just a web site with sm simple pages.
If still face problem accessing the given sln then create a 'new' website at the 'testTalk' directory this way you are suppose to create your own sln file.
Avatar
Alex #21
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
i tried it with VS2005. I have not seen Visual Studio .NET projects without a project file yet. I will try it again when i have some time.

Alex
Avatar
Stranger #22
Member since Aug 2007 · 7 posts
Group memberships: Members
Show profile · Link to this post
Thanks Alex.
Though I'm in a hurry and stuck in this situation-I'll wait till u can manage sm time for me.
All the best.

-Arif
Avatar
login.arpit #23
Member since Jun 2008 · 1 post
Group memberships: Members
Show profile · Link to this post
Hi Alex,

I am working to connect to GoogleClient througth this piece of code but
i can't figure out why I can't
protected void btnLogin_Click(object sender, EventArgs e)
    {
        debugText = "";
        xmpp = (XmppClientConnection) Cache["xmpp"];

        xmpp.OnReadXml += new agsXMPP.XmlHandler(xmpp_OnReadXml);
        xmpp.OnWriteXml += new agsXMPP.XmlHandler(xmpp_OnWriteXml);
        xmpp.OnLogin += new agsXMPP.ObjectHandler(xmpp_OnLogin);
        xmpp.OnMessage += new agsXMPP.protocol.client.MessageHandler(xmpp_OnMessage);
            // agsXMPP.XmlHandler();
        xmpp.OnError += new agsXMPP.ErrorHandler(xmpp_OnError);

        xmpp.Port = 5222;
        xmpp.UseSSL = false;
        xmpp.ConnectServer = "talk.google.com";
        xmpp.Server = "gmail.com";
        xmpp.Username = txtUserName.Text;
        xmpp.Password = txtPassword.Text;
      
        try
        {
            xmpp.Open();
        }
        catch (Exception ex)
        {
            // MessageBox.Show(ex.Message);
        }

    }

  private void xmpp_OnLogin(object sender)
    {
        debugText += "we are logged in to TalkShak server now";//+ System.Environment.NewLine;
        debugText += "set presence";//+ System.Environment.NewLine;
        xmpp.SendMyPresence();
        txtDebug.Text = debugText;
    }


This "xmpp_OnLogin" handler is never called... and the XmppClientConnectionState never becomes Connected.
I think  xmpp.Open() is Async method and apparently independent fron my aspx-page-postback.

can u help anyways?
This post was edited on 2008-06-12, 10:25 by login.arpit.
Avatar
Alex #24
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Did you try the basic WebClient example which ships with the SDK?
If yes, does it work for you?

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page: previous  1  2 
Forum: agsXMPP RSS