Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality. If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers. And always feel free to hit us up on Twitter @MxdRealityDev.

HoloLens sharing service

Hello,

If I run "SharingService.exe -local" from Assets\HoloToolkit\Sharing\SharingService, it works fine, and I'm able to connect to it from my HoloLens. However, it I copy the SharingService.exe to a different directory and run it from there, it appears to start normally, but it doesn't recognize my HoloLens. Is there something in the Assets\HoloToolkit directory structure that the sharing service depends on? I see no error messages, and it appears to start normally in both cases.

Thanks

Tagged:

Answers

  • jbienzmsjbienzms mod
    edited January 2017

    @mlongtin, I don't think there is anything specific about the directory. The getting started docs are here and the source code for the server itself is here.

    The only code I can see that might have something to do with the file location would be logging. I was going to ask if you were attempting to put the exe somewhere like Program Files where the exe would need admin privileges in order to create or write log entries, but then I looked at the logging code.

    It looks like the logging code tries to create a subfolder called SharingServiceLogs under s_defaultLogBaseLocation, but s_defaultLogBaseLocation defaults to C:\ so it really shouldn't matter what location the program is run from.

    Maybe looking at the source I linked to above might help you find the solution. Sorry I couldn't be more helpful.

    Our Holographic world is here

    RoadToHolo.com      WikiHolo.net      @jbienz
    I work in Developer Experiences at Microsoft. My posts are based on my own experience and don't represent Microsoft or HoloLens.

  • jbienz,

    Thanks for the info, that was very helpful! I saw that the c:\SharingServiceLogs does exist on my PC, and it contains logs that look correct.

    And thanks for verifying that the SharingService.exe has no DLL dependencies (aside from the standard OS DLLs) and that it should be able to run from anywhere.

    I'm still baffled as to why it runs fine from Assets\HoloToolkit\Sharing\SharingService, but not from a different directory. At least I have the source code now, though, so I can dig a little more.

    Thanks for your help!

    Mike Longtin

Sign In or Register to comment.