Exception: Deployment failed. Output:

I’m using PC and Microsoft Mixed reality headset. I got this error when I hit “Build and Run.” What does this mean?

Exception: Deployment failed. Output:
Length cannot be less than zero.
Parameter name: length
Manifest files is not valid:D:\Documents\Grace\ZEDAndMixedRealityheadset\Builds\build\bin\x64\Release\AppxManifest.xml

ApplicationLauncherImpl.RunOnLocalMachine (System.String commandLine) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:200)
ApplicationLauncherImpl.Run (.VisualStudio vs) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:164)
ApplicationLauncher.BuildAndRunOnSingle (BuildLaunchPlayerArgs args, WSABuildAndRunDeployTarget deployTarget, .VisualStudio vs) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:51)
ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:37)
UnityEditor.WSA.BuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:112)
UnityEditor.PostprocessBuildPlayer.Launch (BuildTargetGroup targetGroup, BuildTarget buildTarget, System.String path, System.String productName, BuildOptions options, UnityEditor.Build.Reporting.BuildReport buildReport) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:174)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

I have the same error, how is this resolved?

I need an answer to this too !

Same problem here, but building a basic unity project (not mixed reality).

I just created an empty project in Unity 2018.4.21f1, set it to build for UWP / IL2CPP. Error is:

BuildFailedException: Deployment failed. Output:
Length cannot be less than zero.
Parameter name: length
Manifest files is not valid:C:\Users\iuli\Desktop\IL2CPP_Test2\APP2\build\bin\x64\Release\AppxManifest.xml

Is there a solution ?

Still problematic in Unity 2018.3.6