Repository navigation
Closed
Labels
Description
Unhandled Exception:
System.PlatformNotSupportedException: COM Interop is not supported on this platform.
at System.Threading.Thread.SetApartmentStateUnchecked(ApartmentState state, Boolean throwOnError) in /_/src/mono/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs:line 275
at System.Threading.Thread.SetApartmentState(ApartmentState state, Boolean throwOnError) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs:line 507
at System.Threading.Thread.SetApartmentState(ApartmentState state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs:line 486
at Microsoft.Win32.SystemEventsTests.InvokeOnEventsThreadTests.<RegisterFromSTAThreadThatGoesAway_MessageStillDelivered>b__2_0() in /_/src/libraries/Microsoft.Win32.SystemEvents/tests/SystemEvents.InvokeOnEventsThread.cs:line 69
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 378
--- End of stack trace from previous location ---
at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 94
[ERROR] FATAL UNHANDLED EXCEPTION: System.PlatformNotSupportedException: COM Interop is not supported on this platform.
at System.Threading.Thread.SetApartmentStateUnchecked(ApartmentState state, Boolean throwOnError) in /_/src/mono/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs:line 275
at System.Threading.Thread.SetApartmentState(ApartmentState state, Boolean throwOnError) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs:line 507
at System.Threading.Thread.SetApartmentState(ApartmentState state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs:line 486
at Microsoft.Win32.SystemEventsTests.InvokeOnEventsThreadTests.<RegisterFromSTAThreadThatGoesAway_MessageStillDelivered>b__2_0() in /_/src/libraries/Microsoft.Win32.SystemEvents/tests/SystemEvents.InvokeOnEventsThread.cs:line 69
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 378
--- End of stack trace from previous location ---
at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 94
Microsoft.Win32.SystemEventsTests.InvokeOnEventsThreadTests.RegisterFromSTAThreadThatGoesAway_MessageStillDelivered [FAIL]
Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
Stack Trace:
Child exception:
System.PlatformNotSupportedException: COM Interop is not supported on this platform.
/_/src/mono/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs(275,0): at System.Threading.Thread.SetApartmentStateUnchecked(ApartmentState state, Boolean throwOnError)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs(507,0): at System.Threading.Thread.SetApartmentState(ApartmentState state, Boolean throwOnError)
/_/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs(486,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
/_/src/libraries/Microsoft.Win32.SystemEvents/tests/SystemEvents.InvokeOnEventsThread.cs(69,0): at Microsoft.Win32.SystemEventsTests.InvokeOnEventsThreadTests.<RegisterFromSTAThreadThatGoesAway_MessageStillDelivered>b__2_0()
/_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(378,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Child process:
Microsoft.Win32.SystemEvents.Tests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 Microsoft.Win32.SystemEventsTests.InvokeOnEventsThreadTests Void <RegisterFromSTAThreadThatGoesAway_MessageStillDelivered>b__2_0()
Finished: Microsoft.Win32.SystemEvents.Tests
=== TEST EXECUTION SUMMARY ===
Microsoft.Win32.SystemEvents.Tests Total: 208, Errors: 0, Failed: 1, Skipped: 0, Time: 0.335s
----- end Tue 06/08/2021 8:34:33.40 ----- exit code 1 ----------------------------------------------------------
The Microsoft.Win32.SystemEventsTests.InvokeOnEventsThreadTests.RegisterFromSTAThreadThatGoesAway_MessageStillDelivered test was added in #53467
Activity
[-][windows] Test failure: Microsoft.Win32.SystemEventsTests.InvokeOnEventsThreadTests.RegisterFromSTAThreadThatGoesAway_MessageStillDelivered[/-][+][windows][mono] Test failure: Microsoft.Win32.SystemEventsTests.InvokeOnEventsThreadTests.RegisterFromSTAThreadThatGoesAway_MessageStillDelivered[/+]MaximLipnin commentedon Jun 9, 2021
The test is disabled in #53893
SamMonoRT commentedon Jun 24, 2021
@marek-safar - do we know if we need to add COM Interop support for Windows for 6.0 ?
marek-safar commentedon Jun 25, 2021
Move any COM features to Future
dotnet-policy-service commentedon Dec 25, 2025
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.
This process is part of our issue cleanup automation.
dotnet-policy-service commentedon Jan 8, 2026
This issue will now be closed since it had been marked
no-recent-activitybut received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.