User Profile
VigneshwaranMVP
Copper Contributor
Joined 7 years ago
User Widgets
Recent Discussions
Re: MSIX Package Tool error 0x80131500
Thanks for your prompt reply. I was able to successfully package other exe's. I faced this issue when trying to convert TortoiseSVN msi to msix. I have attached the log file for your reference. I See that the issue is with App manifest validation error. How to fix this? Any valuable resource? [3/7/2019 6:38:14 AM] [Debug] Running makepri to generate resources.pri [3/7/2019 6:38:14 AM] [Debug] About to start process [3/7/2019 6:38:14 AM] [Debug] - File name: C:\Program Files\WindowsApps\Microsoft.MsixPackagingTool_1.2019.110.0_x64__8wekyb3d8bbwe\SDK\makepri.exe [3/7/2019 6:38:14 AM] [Debug] - Arguments: new /cf "C:\Users\test\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_1\PriConfig.xml" /pr "C:\Users\test\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_1\VisualAssetsRoot" /mn "C:\Users\test\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_1\b42puu0p.ezc.Manifest" /o /of "C:\Users\test\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_1\resources.pri" /mf Appx [3/7/2019 6:38:14 AM] [Debug] Microsoft (R) MakePRI Tool [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] Copyright (C) 2013 Microsoft. All rights reserved. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] Usage: [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] ------ [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] MakePri.exe new /pr <project root> /cf <config file> [options] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] Example: [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] -------- [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] MakePri.exe new /pr C:\MyApp\src\ /cf C:\MyApp\priconfig.xml /mn [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] C:\MyApp\AppXManifest.xml /of C:\MyApp\src\resources.pri /o [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] Description: [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] ------------ [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] Creates a PRI file at [outputfile] by indexing all files in the [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [projectroot]and its subdirectories as directed by the [configxml]. The [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] index will be assigned [indexname] to reference resources in the application [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] Required Parameters: [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] -------------------- [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /ProjectRoot(pr) : <FOLDERPATH> Root location of project files [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /ConfigXml(cf) : <FILEPATH> Configuration file location. Use [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] 'Makepri.exe createconfig' command to generate one [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] Options: [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] -------- [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /OutputFile(of) : <FILEPATH> Output location of PRI file, default is [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [current directory]\resources.pri [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /Manifest(mn) : <FILEPATH> Location of the application or component's [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] manifest. This parameter is ignored if [indexname] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] is given. Default is [projectroot]\AppXManifest.xml [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /IndexName(in) : <STRING> Name for the generated index of resources. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] Typically matches the AppX package name, class library [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] simple name, etc. May be supplied via the [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [manifest] parameter. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] If IndexName is not specified and an AppX manifest [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] file is not present, the default name 'Application' [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] will be used. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /VersionMajor(vma): <INTEGER> [Deprecated] Major version number for [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] index, default is 1 [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /IndexLog(il) : <FILEPATH> XML Log of indexed resources, no file [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] generated by default [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /AutoMerge(am) : This flag is not recommended for normal use with AppX [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] packages. It causes Makepri.exe to set the auto [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] merge flag within the PRI file. Default is not set. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /ReverseMap(rm) : Generate a reverse mapping section in the PRI file [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] which can be used for debugging purposes. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /MappingFile(mf) : <MAPPINGFILETYPE> Generate a mapping file in the given [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] file format. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /SchemaFile(sf) : <FILEPATH> Output location of XML resource schema [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] description. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /IndexOptions(io) : <OPTIONS> Options to provide detailed control over [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] behavior of resource indexers. [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /Overwrite(o) : Overwrite an existing output file of the same name [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] without prompting [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /Verbose(v) : Causes verbose messages to be output to the console [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /Help(h, ?) : Display the usage help text [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] /ExtensionDll(ex) : <FILEPATH> Location of the MRT environment extension [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] DLL. This DLL must be signed by a Microsoft-issued [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] certificate. Default is an empty path (no DLL [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] will be used). [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] FOLDERPATH - is a valid path to a folder [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] FILEPATH - is a path to a file, either relative to the current [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] directory or absolute [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] MAPPINGFILETYPE - Supported File type(s): 'AppX' [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Debug] [3/7/2019 6:38:14 AM] [Error] ERROR: PRI191: 0x80080204 - Appx manifest not found or is invalid. Please ensure well-formed manifest file is present. Or specify an index name with /in switch. [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] error C00CE1A1: App manifest validation error: The app manifest must be valid as per schema: Line 20, Column 2554, Reason: 'f26e2640-0cff-43dc-8325-575a3261d885' is a duplicate key for the unique Identity Constraint '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Class_Id'. [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] [3/7/2019 6:38:14 AM] [Error] makepri.exe failed, exit code = -2146958844 [3/7/2019 6:38:15 AM] [Error] Error occurred: Microsoft.Packaging.SDKUtils.ProcessRunner.ProcessRunnerException: Process makepri.exe failed with exit code -2146958844. at Microsoft.Packaging.SDKUtils.ProcessRunner.ProcessRunnerBase.ValidateExitCode() at MsixGenerator.MsixTransformation.MSIXTransformationSubsystem.RunMakePriIfNecessary(IBlackboard blackboard) at MsixGenerator.MsixTransformation.MSIXTransformationSubsystem.OnPrePackaging(IBlackboard blackboard) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.OnPreparePackage() at Microsoft.ApplicationVirtualization.Packaging.WithAppCorruptionCheck.Execute(Action execute, Action`1 logCorruption) at Microsoft.ApplicationVirtualization.Packaging.ExceptionGuard`1.Guard(Action logStart, Action execute, Action logEnd, Action`1 exceptionAction) [3/7/2019 6:38:15 AM] [Debug] PrepackagingStop [3/7/2019 6:38:15 AM] [Error] Error preparing the package: Microsoft.ApplicationVirtualization.Packaging.PackagerException: Process makepri.exe failed with exit code -2146958844. ---> Microsoft.Packaging.SDKUtils.ProcessRunner.ProcessRunnerException: Process makepri.exe failed with exit code -2146958844. at Microsoft.Packaging.SDKUtils.ProcessRunner.ProcessRunnerBase.ValidateExitCode() at MsixGenerator.MsixTransformation.MSIXTransformationSubsystem.RunMakePriIfNecessary(IBlackboard blackboard) at MsixGenerator.MsixTransformation.MSIXTransformationSubsystem.OnPrePackaging(IBlackboard blackboard) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.OnPreparePackage() at Microsoft.ApplicationVirtualization.Packaging.WithAppCorruptionCheck.Execute(Action execute, Action`1 logCorruption) at Microsoft.ApplicationVirtualization.Packaging.ExceptionGuard`1.Guard(Action logStart, Action execute, Action logEnd, Action`1 exceptionAction) --- End of inner exception stack trace --- at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.<>c.<PreparePackage>b__3_3(Exception exception) at Microsoft.ApplicationVirtualization.Packaging.ExceptionGuard`1.Guard(Action logStart, Action execute, Action logEnd, Action`1 exceptionAction) at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.PreparePackage() at Microsoft.ApplicationVirtualization.Packaging.Packager.PreparePackage(Func`2[] subsystemCreators, String installPath, Predicate`1 excludeFile, Predicate`1 excludeKey, MsixPackageInputProperties msixPackageInputProperties, CancellationTokenSource cancellationTokenSource) at Microsoft.ApplicationVirtualization.Packaging.Packager.PreparePackage(String ingredientsPath, String manifestPath, String oldManifestPath, String appvManifestPath, String registryHivePath, String userRegistryHivePath, String userClassesRegistryHivePath, String installPath, Predicate`1 excludeFile, Predicate`1 excludeKey, MsixPackageInputProperties msixPackageInputProperties, CancellationTokenSource cancellationTokenSource) at MsixGenerator.LocalOrRemoteExecution.ExecutionSessions.PackagingLocalOrRemoteSession.PreparePackage(CancellationTokenSource cancellationTokenSource, MsixPackageInputProperties msixPackageInputProperties) [3/7/2019 6:38:15 AM] [Error] Error Occurred: Microsoft.ApplicationVirtualization.Packaging.PackagerException: Process makepri.exe failed with exit code -2146958844. ---> Microsoft.Packaging.SDKUtils.ProcessRunner.ProcessRunnerException: Process makepri.exe failed with exit code -2146958844. at Microsoft.Packaging.SDKUtils.ProcessRunner.ProcessRunnerBase.ValidateExitCode() at MsixGenerator.MsixTransformation.MSIXTransformationSubsystem.RunMakePriIfNecessary(IBlackboard blackboard) at MsixGenerator.MsixTransformation.MSIXTransformationSubsystem.OnPrePackaging(IBlackboard blackboard) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.OnPreparePackage() at Microsoft.ApplicationVirtualization.Packaging.WithAppCorruptionCheck.Execute(Action execute, Action`1 logCorruption) at Microsoft.ApplicationVirtualization.Packaging.ExceptionGuard`1.Guard(Action logStart, Action execute, Action logEnd, Action`1 exceptionAction) --- End of inner exception stack trace --- at MsixGenerator.LocalOrRemoteExecution.ExecutionSessions.PackagingLocalOrRemoteSession.PreparePackage(CancellationTokenSource cancellationTokenSource, MsixPackageInputProperties msixPackageInputProperties) at MsixGenerator.LocalOrRemoteExecution.ExecutionSessions.PackagingSession.PreparePackage(CancellationTokenSource cancellationTokenSource, MsixPackageInputProperties msixPackageInputProperties) at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at MsixPackagingTool.ViewModel.Common.ViewModelBase.PreparePackage_BackgroundWorker(Object sender, DoWorkEventArgs doWorkEventArgs) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) [3/7/2019 6:42:02 AM] [Debug] Spawning background worker thread. [3/7/2019 6:42:02 AM] [Debug] Cleaning up the virtual machine [3/7/2019 6:42:02 AM] [Debug] Cleaning up local environment [3/7/2019 6:42:02 AM] [Debug] Releasing global semaphore8.7KViews0likes2Comments
Recent Blog Articles
No content to show