Preview Pane .NET Unhandled Exception
Microsoft PowerToys version
0.90.1
Installation method
GitHub
Area(s) with issue?
File Explorer: Preview Pane, Peek
Steps to reproduce
- Enable Source Code Preview Handler in Power Toys
- Met with an Exception Error
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
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.
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
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.
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