MSIX Appatach Staging Script Error - WVD

Copper Contributor

Hi Team/@Sharla_Akers,

 

We are working on WVD(Windows Virtual Desktop) solution - MSIX App Attach by using below reference link https://docs.microsoft.com/en-us/azure/virtual-desktop/app-attach.

We are facing issue in staging the package. Attaching the script that we have used along with output.

If anyone worked on MSIX Appattach for WVD. Kindly help us to fix this issue.

please find the error below:

 

Cannot index into a null array.
At line:65 char:1
+ $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | Whe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray

You cannot call a method on a null-valued expression.
At line:67 char:1
+ $asTaskAsyncOperation = $asTask.MakeGenericMethod([Windows.Management ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Cannot convert argument "deploymentOptions", with value: "StageInPlace", for "StagePackageAsync" to type
"Windows.Management.Deployment.DeploymentOptions": "Cannot convert value "StageInPlace" to type
"Windows.Management.Deployment.DeploymentOptions". Error: "Unable to match the identifier name StageInPlace to a valid enumerator
name. Specify one of the following enumerator names and try again:
None, ForceApplicationShutdown, DevelopmentMode, InstallAllResources, ForceTargetApplicationShutdown, RequiredContentGroupOnly,
ForceUpdateFromAnyVersion, RetainFilesOnFailure""
At line:75 char:1
+ $asyncOperation = $packageManager.StagePackageAsync($path, $null, "St ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

You cannot call a method on a null-valued expression.
At line:77 char:1
+ $task = $asTaskAsyncOperation.Invoke($null, @($asyncOperation))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

 

Thanks in Advance.

@ReturiVSSSK 

 

5 Replies

Hi @ReturiVSSSK 

 

Can you please confirm what version of the OS you're using? The WVD version needs to be Build 19035 or later.

 

Cheers,

Tanaka

 

 

Hi ,

It is 19035

Hi @ReturiVSSSK,

 

Thanks for confirming. To help us investigate the issue can you please file a Feedback Hub item while attempting to run your Stage Script - https://aka.ms/msixappattachfeedback.

 

The Category is:  Apps > MSIX app attach.

 

Thanks again,

Tanaka

 

@Tanaka_Jimha 

 

We have tested MSIX App Attach and observed that while the feature works as expected on Windows 10 single session(19035 )

we are facing issues while configuring it on Windows 10 Multi session (win 10 Multi session 1909 ).

 

Detailed comparison and error description in the attached document. Please help with your thoughts over the issue.

@ReturiVSSSK Did you get this working. I too getting the same error on 20H2 build 19042.746.  Any help is much appreciated.