Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Guard blocking non-signed binaries when executing microsoft.testplatform.17.0.0.nupkg "Visual Studio Test" task #3302

Closed
mbach2022 opened this issue Jan 31, 2022 · 3 comments
Labels

Comments

@mbach2022
Copy link

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

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:
image
image
Error:
image

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
@nohwnd nohwnd added the triaged label Feb 18, 2022
@nohwnd
Copy link
Member

nohwnd commented Feb 18, 2022

This is issue of vstest task from AzDo. Investigation is in progress...

@sachip-msft
Copy link

I have added issue on vstest ado team microsoft/azure-pipelines-tasks#15946
so someone in that team can look into this.

@Evangelink
Copy link
Member

Closing this issue as it exists on AzDo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants