PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Preview Pane .NET Unhandled Exception

Open Kai-Denzel-Jane opened this issue 7 months ago • 4 comments

Microsoft PowerToys version

0.90.1

Installation method

GitHub

Area(s) with issue?

File Explorer: Preview Pane, Peek

Steps to reproduce

  1. Enable Source Code Preview Handler in Power Toys
  2. Met with an Exception Error

Image

PowerToysReport_2025-05-01-13-11-49.zip

✔️ Expected Behavior

To be able to preview source code files like the feature suggests

❌ Actual Behavior

As far as can see an unavoidable error occurs and the feature doesn't function at all

Additional Information

Windows 11-24H2 Machine-Wide Install

Other Software

No response

Kai-Denzel-Jane avatar May 01 '25 05:05 Kai-Denzel-Jane

We've found some similar issues:

  • #23474 , similarity score: 83%
  • #23323 , similarity score: 81%

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

similar-issues-ai[bot] avatar May 01 '25 05:05 similar-issues-ai[bot]

can you share the filepath for this? type of file could be helpful as well. If you have PII in path, just XXXXX. Wondering if maybe this could be long filepath or something. The error is causing a eyebrow how FE could see the file but not the preview pane

crutkas avatar May 01 '25 20:05 crutkas

can you share the filepath for this? type of file could be helpful as well. If you have PII in path, just XXXXX. Wondering if maybe this could be long filepath or something. The error is causing a eyebrow how FE could see the file but not the preview pane

Sorry it seems I wrote a reply but simply forgot to actually send it.

But in short I fixed the issue by installing EdgeWebView2 as an Administrator because I guess for some reason my install of it was messed up.

Kai-Denzel-Jane avatar May 06 '25 04:05 Kai-Denzel-Jane

And I think for future reference some documentation somewhere should mention to make sure you install WebView2 before using these features just in case you have a bad install of WebView2

Kai-Denzel-Jane avatar May 06 '25 04:05 Kai-Denzel-Jane