Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
sambataro #1
User title: Developer
Member since May 2014 · 7 posts · Location: London
Group memberships: Members
Show profile · Link to this post
Subject: Not working on Windows Phone 8.1 [solved]
Hello,

the library doesn't seem to work with the recent released Windows Phone 8.1.

I tried to run an app built with VS2013 for WP8.1 and I got System.IO.FileNotFoundException (matrix.dll) as soon as I create a new instance of the client.

Any advice? I'm not an expert on .NET but I think the lib just needs to be compiled for WP8.1

Shall I just try to use the WinRT binary?

Thanks
This post was edited 2 times, last on 2014-05-07, 17:33 by sambataro.
sambataro #2
User title: Developer
Member since May 2014 · 7 posts · Location: London
Group memberships: Members
Show profile · Link to this post
Update: I tried with the WinRT binary and I got this error as soon as I tried to login:

"Object reference not set to an instance of an object."

StackTrace    "   at #=qCMMFSX4Ad_kjVrd5a1vJVd04ekxziG2i_Kel_DqP4oo=.#=q9BH14T5Rcd46bMmz$SbbrAWmQjk9gr4LoCXcivLYoCs=(Mechanisms #=qQbJTQygASYHiKNDX_c3mTg==)\r\n   at #=qCMMFSX4Ad_kjVrd5a1vJVd04ekxziG2i_Kel_DqP4oo=.#=q1EjdU3rb6adSTYZD7lMNmg==(StreamFeatures #=qWtS60uMghhVq5$D9TwFCSQ==)\r\n   at Matrix.Xmpp.Client.XmppClient.#=qPOp60Jw0IgtIpqcV2J9EfZ8EtzJUIEYZuYEad1Nu2Vw=(StreamFeatures #=qgUT0enXaD83iR6_Tqu$fRQ==)\r\n   at Matrix.Xmpp.Client.XmppClient.XmppStreamParser_OnStreamElement(Object sender, StanzaEventArgs e)\r\n   at Matrix.Xml.XmppStreamParser.#=qn2A9qRkf0qqJojspWw75_b54WrIxzwlHwP9NHbP2P2s=(XmppXElement #=q0Ma8Zk3jh_c3pi9lx$kWAQ==)"    string
This post was edited on 2014-05-07, 17:24 by Alex.
Avatar
Alex #3
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
We have not installed Visual Studio 2013 update 2 yet because its still RC, also the WP 8.1 developer tools.
Is there a final version now?

Can you post your Xml log?
According to all announcements about WP 8.1 the WinRT build should work. Which seems not to be the case for you ;-)

Alex
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
installed the Windows Phone 8.1 SDK.
The WinRT build works fine for me on our XMPP server.

Alex
sambataro #5
User title: Developer
Member since May 2014 · 7 posts · Location: London
Group memberships: Members
Show profile · Link to this post
Hi Alex,

thanks for your reply.

I am using Visual Studio 2013 Update 2 (which comes with the WP8.1 development tools). Where can I find the XML log?
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I have installed the same now, and works perfect for me.
For logging see here:
http://www.ag-software.net/matrix-xmpp-sdk/matrix-develope…
sambataro #7
User title: Developer
Member since May 2014 · 7 posts · Location: London
Group memberships: Members
Show profile · Link to this post
This is what I got from logging:

  1. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="chat.hipchat.com" version="1.0" >
  2. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" version="1.0" from="chat.hipchat.com" id="795cada27ecb9039" >
  3. <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  4.  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
  5.     <required />
  6.  </starttls>
  7. </stream:features>

Then, the client triggered OnError():
Object reference not set to an instance of an object.
This post was edited on 2014-05-07, 17:24 by Alex.
sambataro #8
User title: Developer
Member since May 2014 · 7 posts · Location: London
Group memberships: Members
Show profile · Link to this post
Ah, now I understood. I just had to enable TLS to make it work! Sorry about that, thanks a lot for your help!!
Avatar
Alex #9
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #7
your server requires TLS. Have you Tls enabled?

  1. xmppClient.StartTls = true
Avatar
Alex #10
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #8
Quote by sambataro:
Ah, now I understood. I just had to enable TLS to make it work! Sorry about that, thanks a lot for your help!!

OK, works now?
sambataro #11
User title: Developer
Member since May 2014 · 7 posts · Location: London
Group memberships: Members
Show profile · Link to this post
Yeah it's lovely ;)

By the way, where can I find some information/docs about Multi-user chat (XEP-0045)  - e.g. how to get the available rooms, etc?
This post was edited on 2014-05-07, 17:33 by sambataro.
Avatar
Alex #12
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by sambataro:
By the way, where can I find some information/docs about Multi-user chat (XEP-0045)  - e.g. how to get the available rooms, etc?

here:
XEP-0045: Multi-User Chat

You get rooms over Service Discovery. Use the DiscoManager for that.

For different topics please start new threads, or post in existing once that match.
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: