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
I created a sample application, there was nothing special, just do it with the wizard, named AppTest.
The only modification was to add the appExecutionAlias extension to the package manifest file:
Started the app from the Visual Studio wroked well.
Launched a command prompt, and typed in: AppTest
Weird results are:
The operating system starts 2 instances of the application, the first is suspended initially, the second runs, but turns into suspended mode in 3 seconds, then immediately closed.
There is no other effect on the screen.
There is a .NET Runtime error on the Event Viever, saying called a thread attached to an other thread:
Application: AppTest.exe
CoreCLR Version: 6.0.2724.6912
.NET Version: 6.0.27
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException (0x8001010E): Az alkalmazás olyan objektumfelületet hívott, amely egy másik szálhoz volt rendelve.
The Application Object must initially be accessed from the multi-thread apartment.
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
at ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.Start(IObjectReference _obj, ApplicationInitializationCallback callback)
at Microsoft.UI.Xaml.Application.Start(ApplicationInitializationCallback callback)
at AppTest.Program.Main(String[] args)
Please, Microsoft, this problem has a predecessor, and I found never a solution on any forum!
At this moment it is impossible to launch from command line any WinUI application, although it would be necessary.
How can we solve this problem?
Steps to reproduce the bug
Create any WinUI app
Modify package.manifest
Run the app once
Open a command line and try to launch
Expected behavior
No response
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.4.5: 1.4.240411001
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I created a sample application, there was nothing special, just do it with the wizard, named AppTest.
The only modification was to add the appExecutionAlias extension to the package manifest file:
Started the app from the Visual Studio wroked well.
Launched a command prompt, and typed in: AppTest
Weird results are:
Application: AppTest.exe
CoreCLR Version: 6.0.2724.6912
.NET Version: 6.0.27
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException (0x8001010E): Az alkalmazás olyan objektumfelületet hívott, amely egy másik szálhoz volt rendelve.
The Application Object must initially be accessed from the multi-thread apartment.
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
at ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.Start(IObjectReference _obj, ApplicationInitializationCallback callback)
at Microsoft.UI.Xaml.Application.Start(ApplicationInitializationCallback callback)
at AppTest.Program.Main(String[] args)
Please, Microsoft, this problem has a predecessor, and I found never a solution on any forum!
At this moment it is impossible to launch from command line any WinUI application, although it would be necessary.
How can we solve this problem?
Steps to reproduce the bug
Expected behavior
No response
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.4.5: 1.4.240411001
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: