I used the WebBrowser control to display PDFs in a Visual Studio C# Application. This solution was working for a long time. But suddenly it does not display PDF documents anymore. But using the WebBrowser, the screen stays gray for .pdf files.
When setting the project explititly to x86 target platform, it works again. With Any or x64 it doesn't show the PDFs, but x86 is no solution for me, because my application needs x64.
Here's a question extremely similar to mine, but there was no definitive answer to the problem.
WPF WebBrowser control does not show PDFs anymore (.NET5 Acrobat Reader ActiveX)