Clicking on a markdown (.md) file always fails with a .NET error. The file contents are not displayed in the preview viewer. No error appears if the viewer is hidden. The error details follow:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.COMException (0x8007139F): The group or resource is not in the correct state to perform the requested operation. (0x8007139F)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(IntPtr ParentWindow)
at Microsoft.Web.WebView2.WinForms.WebView2.InitCoreWebView2Async(CoreWebView2Environment environment, CoreWebView2ControllerOptions controllerOptions)
at Microsoft.PowerToys.PreviewHandler.Markdown.MarkdownPreviewHandlerControl.<>c__DisplayClass13_0`1.<<DoPreview>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__124_0(Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 10.0.0.0
Location: C:\Program Files\PowerToys\System.Private.CoreLib.dll
----------------------------------------
PowerToys.MarkdownPreviewHandler
Assembly Version: 0.100.1.0
Location: C:\Program Files\PowerToys\PowerToys.MarkdownPreviewHandler.dll
----------------------------------------
System.Runtime
Assembly Version: 10.0.0.0
Location: C:\Program Files\PowerToys\System.Runtime.dll
----------------------------------------
WinRT.Runtime
Assembly Version: 2.2.0.0
Location: C:\Program Files\PowerToys\WinRT.Runtime.dll
----------------------------------------
System.Collections
Assembly Version: 10.0.0.0
Location: C:\Program Files\PowerToys\System.Collections.dll
----------------------------------------
System.Collections.Concurrent
Assembly Version: 10.0.0.0
Location: C:\Program Files\PowerToys\System.Collections.Concurrent.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 10.0.0.0
Location: C:\Program Files\PowerToys\System.Drawing.Primitives.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 10.0.0.0
Location: C:\Program Files\PowerToys\System.Windows.Forms.dll
----------------------------------------
PowerToys.ManagedTelemetry
Assembly Version: 0.100.1.0
Location: C:\Program Files\PowerToys\PowerToys.ManagedTelemetry.dll
----------------------------------------