You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device guard is blocking one of the dependencies of microsoft.testplatform.17.0.0.nupkg when executing "Visual Studio Test" task
Error: Could not load file or assembly 'System.IO.Abstractions, Version=2.1.0.174, Culture=neutral, PublicKeyToken=96bf224d23c43e59' or one of its dependencies. Your organization used Device Guard to block this app.
Steps to reproduce
What steps can reproduce the defect?
Device Guard is blocking non-signed binaries when executing microsoft.testplatform.17.0.0.nupkg
This package is getting invoked from a release pipeline with the following tasks:
Visual studio platform installer
Visual Studio Test (This task is failing with the following error: Could not load file or assembly 'System.IO.Abstractions, Version=2.1.0.174, Culture=neutral, PublicKeyToken=96bf224d23c43e59' or one of its dependencies. Your organization used Device Guard to block this app. Contact your support person for more info. (Exception from HRESULT: 0x800711C7)
Screenshots:
Error:
Expected behavior
Test should pass
Actual behavior
Device guard is blocking one of the testplatform components when running the test.
Diagnostic logs:
2022-01-28T13:30:23.7417720Z ##[error]TestExecution encountered unexpected failures System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
2022-01-28T13:30:23.7426874Z ##[debug]Processed: ##vso[task.logissue type=error;]TestExecution encountered unexpected failures System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
2022-01-28T13:30:23.7427621Z
2022-01-28T13:30:23.7428299Z 1) Could not load file or assembly 'System.IO.Abstractions, Version=2.1.0.174, Culture=neutral, PublicKeyToken=96bf224d23c43e59' or one of its dependencies. Your organization used Device Guard to block this app. Contact your support person for more info. (Exception from HRESULT: 0x800711C7)
2022-01-28T13:30:23.7429199Z
2022-01-28T13:30:23.7429557Z Resulting in: An exception occurred while trying to create an instance of type 'Microsoft.VisualStudio.TestService.AgentExecutionHost.JsonInputParser'.
2022-01-28T13:30:23.7429837Z
2022-01-28T13:30:23.7430125Z Resulting in: Cannot activate part 'Microsoft.VisualStudio.TestService.AgentExecutionHost.JsonInputParser'.
2022-01-28T13:30:23.7430848Z Element: Microsoft.VisualStudio.TestService.AgentExecutionHost.JsonInputParser -->
Environment
Please share additional details about the test environment.
Operating system: Windows
Build version of vstest.console: Visual Studio Test 2.198.0
The text was updated successfully, but these errors were encountered:
Description
Device guard is blocking one of the dependencies of microsoft.testplatform.17.0.0.nupkg when executing "Visual Studio Test" task
Error: Could not load file or assembly 'System.IO.Abstractions, Version=2.1.0.174, Culture=neutral, PublicKeyToken=96bf224d23c43e59' or one of its dependencies. Your organization used Device Guard to block this app.
Steps to reproduce
Device Guard is blocking non-signed binaries when executing microsoft.testplatform.17.0.0.nupkg
This package is getting invoked from a release pipeline with the following tasks:
Screenshots:
Error:
Expected behavior
Actual behavior
Device guard is blocking one of the testplatform components when running the test.
Diagnostic logs:
2022-01-28T13:30:23.7417720Z ##[error]TestExecution encountered unexpected failures System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
2022-01-28T13:30:23.7426874Z ##[debug]Processed: ##vso[task.logissue type=error;]TestExecution encountered unexpected failures System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
2022-01-28T13:30:23.7427621Z
2022-01-28T13:30:23.7428299Z 1) Could not load file or assembly 'System.IO.Abstractions, Version=2.1.0.174, Culture=neutral, PublicKeyToken=96bf224d23c43e59' or one of its dependencies. Your organization used Device Guard to block this app. Contact your support person for more info. (Exception from HRESULT: 0x800711C7)
2022-01-28T13:30:23.7429199Z
2022-01-28T13:30:23.7429557Z Resulting in: An exception occurred while trying to create an instance of type 'Microsoft.VisualStudio.TestService.AgentExecutionHost.JsonInputParser'.
2022-01-28T13:30:23.7429837Z
2022-01-28T13:30:23.7430125Z Resulting in: Cannot activate part 'Microsoft.VisualStudio.TestService.AgentExecutionHost.JsonInputParser'.
2022-01-28T13:30:23.7430848Z Element: Microsoft.VisualStudio.TestService.AgentExecutionHost.JsonInputParser -->
Environment
The text was updated successfully, but these errors were encountered: