iot core error when use ProcessLauncher.RunToCompletionAsync execute process

0

I want to run another program from my program my code is

    var options = new ProcessLauncherOptions();
            var standardOutput = new InMemoryRandomAccessStream();
            var standardError = new InMemoryRandomAccessStream();
            options.StandardOutput = standardOutput;
            options.StandardError = standardError;
             await ProcessLauncher.RunToCompletionAsync(@"C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\930e206e-dd28-4760-84b2-f3a1f74801feVS.Debug_ARM.Mostafa.Bagheri\Jamsaz.InjectionWeights.exe", "", options);

when i run in vs 2017 get following error

This application can only run in the context of an app container. (Exception from HRESULT: 0x8007109B) Error Image

c#
uwp
launcher

1 Answer

0

You may need including the executable application with the AppX package. For detailed steps, you can reference this tutorial:

External process launcher.

answered on Stack Overflow Nov 16, 2017 by Rita Han

User contributions licensed under CC BY-SA 3.0