Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8766791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:38:20+00:00 2026-06-13T16:38:20+00:00

After importing the jabber-net dlls from here into my project and running using UnityEngine;

  • 0

After importing the jabber-net dlls from here into my project and running

using UnityEngine;
using System.Collections;
using jabber;
using jabber.client;
using jabber.connection;

public class XMPP : MonoBehaviour {

    jabber.client.JabberClient jC;

        // Use this for initialization
        void Start () {
        jC = new JabberClient();
    }
}

Unity complains with:

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.TypeLoadException: Could not load type ‘jabber.connection.XmppStream’ from assembly ‘jabber-net, Version=2.1.0.710, Culture=neutral, PublicKeyToken=924c5b18328d6f09’.

I have read that others (a very select few) have managed to get jabber-net integrated with their Unity code. Could anybody shed some light on how this could be done or point me to an alternative library? I would very much like to be able to use XMPP in my project.

Thanks

Edit

Thanks @Calvin for providing your helpful response and helping me drill down to the problem.

Steps to resolution:

  1. Compile the dlls in monodevelop after stripping out System.Drawing and System.Windows.Form (Change build target to be library instead of executable)
  2. Import the dlls in the Plugins folder (not a random folder)
  3. Change the Unity build target to be Net 2.0 (not Net 2.0 subset) and instruct it to strip bytecode
  4. Delete the SystemAssemblies folder to force a recompile

Postmortem

And … this approach appears to ultimately fail. Compiling to ios seems to break the dependency chain with ExecutionEngineException: Attempting to JIT compile method ‘(wrapper managed-to-native) System.Threading.Interlocked:CompareExchange (jabber.protocol.ProtocolHandler&,jabber.protocol.ProtocolHandler,jabber.protocol.ProtocolHandler)’ while running with –aot-only.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:38:21+00:00Added an answer on June 13, 2026 at 4:38 pm

    I was just able to compile the 2005-jabber-net solution in MonoDevelop and add it to a Unity 3.5.6 project without Unity generating a compiler error.

    The solution had references to System.Drawing and System.Windows.Forms, which Unity doesn’t support. I removed those, changed the compile target to “Library”, and copied the 2005-jabber-net.dll, netlib.Dns.dll, and zlib.net.dll into the Unity project.

    Your sample code compiled and ran when attached to a GameObject, but I didn’t test further.

    edit: Just realized this assembly may require Unity Pro, since .Net socket access is restricted in the free version of Unity.

    double edit: I take that back, just checked their product comparison chart and now .Net sockets are listed as available in the free version of Unity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After importing content from a legacy website using the Feeds module, I'm left with
After importing a Maven GWT project into Eclipse the debugger doesn't work, complaining that
When I type 'from' (in a LINQ query) after importing System.Linq namespace , it
I followed the advice here, but I'm still running into the same issues after
I made the mistake of modifying my original source after importing it into subversion.
My application running android ice cream sandwich, after importing roboto.ttf and roboto-bold.ttf fonts in
I am using the mlogit package with R. After importing my data using: t
I am aware of 'Must Override a Superclass Method' Errors after importing a project
I have a demo app here https://github.com/rdetert/image-transform-test After importing an image, you can pinch,
After importing into delphi the com dll file, the delphi in turn generated a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.