Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question UWP created with Unity not sending Azure SignalR message to clients in Hololens2

Discussion in 'AR' started by jstacks, Mar 31, 2023.

  1. jstacks

    jstacks

    Joined:
    Mar 31, 2023
    Posts:
    2
    Hi,

    I created a Universal windows project with Unity that is deployed on a Hololens2. The Unity app is supposed to send and receive messages using Azure SignalR. When testing out the app in the Unity tool platform the project is able to send and receive messages, however when deployed to the hololens2 the app is only able to receive the Azure SignalR messages but not send them. Has anyone had an issue like this before??

    What I have done to try to solve the issue:

    - I have checked out the Unity logs from the portal in the local app data. I looked through the logs, but I could not find anything that stood out for an error when trying to send the message. I was also not 100% sure what that error would look like though other then debug logs I put in the script. If you know of what I should be looking for in the logs?

    - I checked out the capabilities in the publishing settings when deploying the UWP on VS and I have the proper client and server options checked off for deployment.

    - The Unity version currently being used on the project is 2020 LTS. I do have the 2021 version installed but I have not switched over to that version because I was worried about adding more issues to my problem since it feels Unity and Hololens is unstable.
     
  2. thomas_key

    thomas_key

    Unity Technologies

    Joined:
    Dec 14, 2019
    Posts:
    39
  3. CiaranWills

    CiaranWills

    Unity Technologies

    Joined:
    Apr 24, 2020
    Posts:
    199
    You may have more success asking in Microsoft's HoloLens forums.
     
  4. jstacks

    jstacks

    Joined:
    Mar 31, 2023
    Posts:
    2
    @CiaranWills @thomas_key thank you for replying to my question. Ironically that is where I originally had posted my question and I was redirected here. But I have made some progress towards figuring out the issue. It seems my UWP does not have the Microsoft.Azure.SignalR nuget package installed which is responsible for sending messages out, I only had the SIignalR core package installed for clients. I gathered all of the dlls for the package(40 of them and it was miserable work lol) but after adding them to my plugins folder one of the dlls "System.Numeric.Vectors" is conflicting with the MRTK library. They both share classes with the same name and the Unity editor is having trouble knowing which library to pull from. The error given is below -
    Library\PackageCache\com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec\Core\Extensions\SystemNumericsExtensions.cs(21,71): error CS0433: The type 'Vector3' exists in both 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    Library\PackageCache\com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec\Core\Extensions\SystemNumericsExtensions.cs(33,85): error CS0433: The type 'Quaternion' exists in both 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    Library\PackageCache\com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec\Core\Extensions\SystemNumericsExtensions.cs(38,74): error CS0433: The type 'Matrix4x4' exists in both 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    All these classes are in the same file in the MRTK. I have not been able to resolve this issue. I have tried to get unity to use one library over the other to resolve the issue but so far not luck. Have you guys or anyone else ran into a similar issue with MRTK and dlls sharing the same name for classes and how to fix the issue??

    thank you
     
  5. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,117
    It sounds you have multiple conflicting copies of the System.Numeric.Vectors dll in your project. The only way to resolve this issue is to delete one of the offending copies.

    If doing so requires you to modify a third-party product, or SignalIR and MRTK each depend on a different version of the DLL, you may find that this combination of libraries is incompatible.