Skip to content

One or more errors occurred. (IoT) #296

@moyanming

Description

@moyanming

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions