PopupSecurityHelper.ForceMsaaToUiaBridge causes FileNotFoundException
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
I've gotten several reports from users that crash with this exception:
```
System.IO.FileNotFoundException:
File name: 'Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.Windows.Controls.Primitives.Popup.PopupSecurityHelper.ForceMsaaToUiaBridge(PopupRoot popupRoot)
at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
...
```
https://github.com/RandomEngy/VidCoder/issues/1093, https://github.com/RandomEngy/VidCoder/issues/1136
It happens on a popup, in one case with a tooltip and in another case on a menu dropdown using the Fluent Ribbon WPF library. I've never seen this crash happen myself; and these actions are quite common in regular usage of the program.
Maybe addressing https://github.com/dotnet/wpf/issues/5807 would fix this?
### Reproduction Steps
Open a popup (not consistent)
### Expected behavior
No crash
### Actual behavior
Crash with FileNotFound exception
### Regression?
_No response_
### Known Workarounds
_No response_
### Impact
_No response_
### Configuration
.NET 6.0
x64
I don't know if it's specific to this configuration; I've only gotten a few bug reports.
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.