Share via

Migrated to UAP module throws exception Invalid PRI error

Gopal Devra 6 Reputation points
2020-07-14T08:28:52.07+00:00

Visual Studio 2015 project has four submodules. So these are migrated to the UAP. If I migrate one Visual C++ referenced module then the Javascript module which is referencing the same Visual C++ module throws an exception "Invalid PRI error". With warning " This project targets "Windows, Version=8.1", but it is attempting to reference module targeting "UAP, Version=10.0.14393.0", which is invalid."

So in the above scenario the Javascript module is not migrated(i.e. Windows 8.1). So because of the above warning, I migrated the Javascript module to the UAP as well, so the PRI invalid error is gone but Now I am facing this error on the Jenkins

add-appxpackage C:\jenkins\workspace\viewer-windows_validator_build\build\..\viewer\AppPackages\viewer-test_*_x86_Test\viewer-test_*_x86.appx C:\jenkins\workspace\viewer-windows_validator_build\viewer\AppPackages\viewer-test_1.0.0.0_x86_Test\Dependencies\x86\Microsoft.NET.CoreRuntime.1.0.appx C:\jenkins\workspace\viewer-windows_validator_build\viewer\AppPackages\viewer-test_1.0.0.0_x86_Test\Dependencies\x86\Microsoft.VCLibs.x86.14.00.appx
09:47:52 protocol viewer-test
09:47:52 start viewer-test:?closeAfterRun=true
09:47:54 start : This command cannot be run due to the error: The remote procedure call failed.
09:47:54 At C:\jenkins\workspace\viewer-windows_validator_build\build\buildUtils.psm1:125 char:5
09:47:54 +     start ${viewerProtocol}:$params
09:47:54 +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:47:54     + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
09:47:54     + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
09:47:54  
09:47:54 Waiting for WWAHost process to exit with Timeout of 300
09:47:54 Get-Process : Cannot find a process with the name "WWAHost". Verify the process name and call the cmdlet again.
09:47:54 At C:\jenkins\workspace\viewer-windows_validator_build\build\buildUtils.psm1:149 char:9
09:47:54 +         Get-Process $processName | Wait-Process -Timeout $TIMEOUT; 

Can someone hint what is wrong with it?

Community Center | Not monitored
0 comments No comments

2 answers

Sort by: Most helpful
  1. Gopal Devra 6 Reputation points
    2020-07-14T12:02:53.273+00:00

    @RichardZhang-MSFT thanks

    But the same logs are reproducible locally as well when I run the same command in the terminal.

    Was this answer helpful?

    0 comments No comments

  2. Richard Zhang-MSFT 6,936 Reputation points Microsoft Employee Moderator
    2020-07-14T11:59:57.103+00:00

    Hello,

    Welcome to Microsoft Q&A.

    It looks like you are trying to migrate Windows 8 JS project to UWP and integrate it through CI tool. But Jenkins is a third-party tool and is not within the scope of Q&A support.

    On the basis of confirming that the local Visual Studio compilation can pass, you can consult the technical service personnel related to the tool you are using.

    Thanks.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.