locked
Problem Launching App on Surface

    Question

  • The error I'm getting is: The root certificate of the signature in the app package must be trusted : Even though the certificate is trusted. More info below.

    I've made an app on my Windows 8 laptop in VS. I have a Windows 8 Pro Surface that I want to test the app on. I want to do this by creating an app package. I do this by going to Project > Store > Create App Packages. I wasn't sure whether to do ARM or x64 so I did one of each. I then get the file over to my surface and try to install the app through the Windows PowerShell and I run into an issue. It finds the package and developer license fine. Then comes the certificate part. I've ensured the certificate is in Trusted Root Certification Authorities by going into MMC. The certificate I put there is the one I found in the same file as the AppDevPackage I'm running. The error I get is the following:

    Installing package...

    Found dependency package(s):

    H:\AppPackages\appName_x64_Debug_Test\Dependencies\Microsoft.WinJS.1.0.appx  

    Add-AppxPackage: Deployment failed with HRESULT: 0x800B0109, A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. (Exception from HRESULT: 0x800B0109)

    error 0x800B0109: The root certificate of the signature in the app package must be trusted. 

    Note: some stuff I don't think you need to know, but if you want it let me know.

    Error: Could not install the package.

    I'm not sure if I need to change something in the app before I create the app package or what's going on. 

    Thanks!



    • Edited by ZachAtttack Thursday, March 7, 2013 3:49 PM MMC not MMS
    Wednesday, March 6, 2013 6:42 PM

Answers

  • The Surface Pro uses x86 or x64. The Surface RT uses ARM.

    Confirm that the certificate is in the right location under Certificates (Local Computer) > Trusted Root Certification Authorities > Certificates node or the Certificates (Local Computer) > Trusted People > Certificates .

    See Sharing an app package locally (Windows Store apps) for more details on how to set this up..

    --Rob

    • Marked as answer by ZachAtttack Thursday, March 7, 2013 3:54 PM
    Wednesday, March 6, 2013 10:00 PM
    Moderator

All replies

  • Verify is there is another version of the app installed, remove it and make sure you follow the right steps.

    Sara Silva - Microsoft Visual C# MVP
    My blog | My Windows 8 Store Apps Samples | More Samples
    Follow me in Twitter @saramgsilva

    My Windows 8 Store Apps: Female Pill | Galinho (Tic tac Toe) | 24 | My Snake
    My Windows Phone Apps

    Wednesday, March 6, 2013 8:56 PM
  • There are 0 versions of the app installed, that's the problem, it won't install. First I want to verify whether the Windows 8 Pro Surface is going to need to install the ARM or x64 version of the app. And second, my only steps anymore are: go to the file, right click it, run in PowerShell. That's where it spits back all that information I have in the first post. 
    • Edited by ZachAtttack Wednesday, March 6, 2013 9:05 PM
    Wednesday, March 6, 2013 9:04 PM
  • The Surface Pro uses x86 or x64. The Surface RT uses ARM.

    Confirm that the certificate is in the right location under Certificates (Local Computer) > Trusted Root Certification Authorities > Certificates node or the Certificates (Local Computer) > Trusted People > Certificates .

    See Sharing an app package locally (Windows Store apps) for more details on how to set this up..

    --Rob

    • Marked as answer by ZachAtttack Thursday, March 7, 2013 3:54 PM
    Wednesday, March 6, 2013 10:00 PM
    Moderator
  • I checked out that link before which is where I got the MMC stuff. I did need to re-look at it though because I had the certificate located in "Certificates - Current User" rather than "Certificates - (Local Computer)".  Once I copy pasted the certificate to the two places you mentioned with Local Computer as the root it installed correctly. Thanks Rob. 
    Thursday, March 7, 2013 3:56 PM