WindowsDevicePortalWrapper icon indicating copy to clipboard operation
WindowsDevicePortalWrapper copied to clipboard

One or more errors occurred. (IoT)

Open moyanming opened this issue 6 years ago • 0 comments

Hi, There is an run time error when use the wrapper, but the command on the PowerShell works fine. How to fix this problem?

var t = wdp.RunCommandWithoutOutputAsync( @"erase C:\Data\Users\folder1\ -force -recurse", "false", "5").Result;

System.AggregateException: 'One or more errors occurred. ()' System.AggregateException HResult=0x80131500 Message=One or more errors occurred. () Source=System.Private.CoreLib StackTrace: at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result() at MyTestWDPHeadless.StartupTask.testWDP() in C:\files\temp\WindowsDevicePortalWrapper-master\WindowsDevicePortalWrapper\MyTestWDPHeadless\StartupTask.cs:line 54 at MyTestWDPHeadless.StartupTask.Run(IBackgroundTaskInstance taskInstance) in C:\files\temp\WindowsDevicePortalWrapper-master\WindowsDevicePortalWrapper\MyTestWDPHeadless\StartupTask.cs:line 27

moyanming avatar Apr 02 '19 13:04 moyanming