[dotnet-sdk-10.0.100-alpha.1.25057.15] Fail to open folder in WinQuickLook with error "System.InvalidCastException: Unable to cast object of type 'System.__ComObject' to type 'Windows.Win32.UI.Shell.IShellView'". #10257
Labels
📭 waiting-author-feedback
To request more information from author.
Description
When run the 3rd party application with the latest .NET 10 build, it was no response to open folder. After investigation, we discovered this error:
System.InvalidCastException: Unable to cast object of type 'System.__ComObject' to type 'Windows.Win32.UI.Shell.IShellView'
.Reproduction Steps
App Repro Steps:
2.Change the "WinQuickLook.App.runtimeconfig.json" file to let the app run against with
dotnet-sdk-10.0.100-alpha.1.25057.15.
Expected Result:
Pop up window.
Actual Result:
No window show.
Minimal Repro steps (Demo attached: WpfAppDemo.zip):
Expected behavior
Launch successfully.
Actual behavior
Launch failed with error:
System.InvalidCastException: Unable to cast object of type 'System.__ComObject' to type 'Windows.Win32.UI.Shell.IShellView'
.Regression?
Yes
Verify Scenarios:
1). Windows 10 22H2 AMD64 + dotnet-sdk-9.0.102: Pass
2). Windows 10 22H2 AMD64 + dotnet-sdk-10.0.100-alpha.1.25057.15: Fail
Known Workarounds
No response
Impact
No response
Configuration
Application Name: WinQuickLook
OS: Windows 10 22H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-alpha.1.25057.15
App & Source Location checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2340552
Github Link: https://github.com/shibayan/WinQuickLook
Dotnet info:
Other information
@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: