Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
shieldstromme #1
Member since Aug 2012 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: WinRT Project Help
Hi,

I have just started development of a new winRT app in Visual Studio 2012 using VB.NET.

This is my first experience of winRT apps AND Matrix, so bear with me.

I created a new project based on the splitpage template.

I added the Matrix library DLL to the projects references.

In the sampledatasource.vb file I imported Matrix.Xmpp.Client

I'm adding a new private member (Private WithEvents _myMatrix As XmppClient) to the SampleDataSource object.

In SampleDataSource's New constructor I am running the following code (to connect to google talk):

  1. Dim lic As String = "xxxxxxx"
  2. Matrix.License.LicenseManager.SetLicense(lic)
  3.  
  4. _myMatrix = New XmppClient()
  5. _myMatrix.Username = "xxxxxx"
  6. _myMatrix.Password = "xxxxxx"
  7. _myMatrix.XmppDomain = "xxxxx.com"
  8. _myMatrix.Hostname = "talk.google.com"
  9. _myMatrix.Port = 5222
  10. _myMatrix.Show = Matrix.Xmpp.Show.chat
  11. _myMatrix.Status = "Testing on Windows 8"
  12. _myMatrix.Open()

As soon as this code runs I get an unhandled exception: 'The I/O operation has been aborted because of either a thread exit or an application request. (Exception from HRESULT: 0x800703E3)'

Any ideas why?

Thanks

Chris
This post was edited 3 times, last on 2013-03-22, 09:31 by Alex.
Avatar
shieldstromme #2
Member since Aug 2012 · 2 posts
Group memberships: Members
Show profile · Link to this post
Adding the following line, fixed the problem!

  1. _myMatrix.TlsValidationHostName = "talk.google.com"
This post was edited on 2013-03-22, 09:30 by 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: