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

System.ArgumentException: The parameter is incorrect #173

Open
vasiliisorokin opened this issue Sep 16, 2024 · 3 comments
Open

System.ArgumentException: The parameter is incorrect #173

vasiliisorokin opened this issue Sep 16, 2024 · 3 comments

Comments

@vasiliisorokin
Copy link

Getting error during tests in azure pipeline using VSTest version 17.11.0 (x64)

Error Message:
   System.InvalidOperationException : Test execution was skipped due to a prior exception in the harness.
---- System.ArgumentException : The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
  Stack Trace:
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
----- Inner Stack Trace -----
   at EnvDTE.Commands.Item(Object index, Int32 ID)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

@vasiliisorokin
Copy link
Author

UPD: it started to happen on 20240912.1.0 windows-2022 image version in azure pipelines, on 20240811.1.0 it was ok

@sharwell
Copy link
Member

sharwell commented Sep 24, 2024

It's hard to tell where this is being thrown. Are we able to narrow it down, e.g. to one of these?

if (dte.Commands.Item(WellKnownCommandNames.IntegrationTestServiceStart).IsAvailable)

if (_inProc.IsCommandAvailable(WellKnownCommandNames.IntegrationTestServiceStop))

@vasiliisorokin
Copy link
Author

vasiliisorokin commented Sep 24, 2024

Not sure, I suppose its first one.
I experienced this only during azure pipeline run and only after image update, I created this issue on their side actions/runner-images#10644

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

No branches or pull requests

2 participants