The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
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.
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, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Certificate file missing error when building SessionManagerUniversal.UI
I can't find the missing file in the repo, so I'm guessing it's coming from somewhere else or is meant to be generated. Any ideas?
"C:\Users\xtoph\Code\HoloToolkit\Sharing\Src\Solutions\VisualStudio\HoloToolkit.Sharing.sln" (rebuild target) (1
) ->
"C:\Users\xtoph\Code\HoloToolkit\Sharing\Src\Projects\SessionManagerUniversal.UI\SessionManagerUniversal.UI.cspr
oj" (Rebuild target) (14) ->
(_GenerateAppxPackageFile target) ->
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2551,5):
error APPX0104: Certificate file 'SessionManagerUniversal.UI_TemporaryKey.pfx' not found. [C:\Users\xtoph\Code\
HoloToolkit\Sharing\Src\Projects\SessionManagerUniversal.UI\SessionManagerUniversal.UI.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2551,5):
error APPX0107: The certificate specified is not valid for signing. For more information about valid certificat
es, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\Users\xtoph\Code\HoloToolkit\Sharing\Src\Projects\Ses
sionManagerUniversal.UI\SessionManagerUniversal.UI.csproj]
Best Answer
-
Optionsholodoctor ✭✭
@xtopher This is due to the fact that the dev certificate is not checked in to the git repository. This is just a dummy certificate used during development and you can create one yourself. Just name it SessionManagerUniversal.UI_TemporaryKey.pfx so that you don't have to modify the vs project file. The link in the error message, https://msdn.microsoft.com/en-us/library/windows/apps/br230260(v=vs.110).aspx, shows how to generate a certificate. I could be wrong, but if you use Visual Studio it may automatically create one for you. If not, open the project properties and create a test certificate from the Signing tab. At least, I think that's how I do it. I've done this many times before (for general UWP app dev), but who remembers these details? If this doesn't work, then you can easily find a better info on the Web. (This is a common issue during Windows Store app development.) HTH, ~h
6
Answers
@xtopher This is due to the fact that the dev certificate is not checked in to the git repository. This is just a dummy certificate used during development and you can create one yourself. Just name it SessionManagerUniversal.UI_TemporaryKey.pfx so that you don't have to modify the vs project file. The link in the error message, https://msdn.microsoft.com/en-us/library/windows/apps/br230260(v=vs.110).aspx, shows how to generate a certificate. I could be wrong, but if you use Visual Studio it may automatically create one for you. If not, open the project properties and create a test certificate from the Signing tab. At least, I think that's how I do it. I've done this many times before (for general UWP app dev), but who remembers these details? If this doesn't work, then you can easily find a better info on the Web. (This is a common issue during Windows Store app development.) HTH, ~h
Thanks. That did the trick.
I was able to create the test cert, but the build still failed.
update: Fixed. Didn't follow steps correctly
Stephen Hodgson
Microsoft HoloLens Agency Readiness Program
Virtual Solutions Developer at Saab
HoloToolkit-Unity Moderator