Just a quick FYI regarding the Modern Web Browser control. I’ve been doing some recent work and have been experiencing issues.
As previously reported, I’ve been getting blank displays even though the URL indicates it went to the site, nothing new here!
Now, after closing my database, I kept having a lock file that wouldn’t go away and I couldn’t delete it. Examining the Task Manager I came to see that Access remained running as a hidden process, and I also then saw a whole bunch of Microsoft Edge WebView2 processes running as well. It was only after killing all of these that I was able to finally delete the lock file and continue working.
What I also found weird is I had an opened instance of the Task Manager and would use the database, use the modern web browser and wouldn’t see the Microsoft Edge WebView2 processes running. After a little playing around I discovered they didn’t auto-refresh in the Task Manager. I had to close and reopen the Task Manager to get an updated listing which will include these processes. I’ve never experienced this with any other process before!
Now, I’ve done lots of testing and can’t reproduce this behavior 100% reliably, but it does seem to be much more pronounced when I’m doing development vs. when just running the database for normal use.
So all of this to say, if you are doing Modern Web Browser control development, I’d urge you to use your Task Manager to ensure you don’t end up with a whole bunch of hidden orphaned Microsoft Edge WebView2 processes.
Below is a quick screenshot of such a case from a single form with a single instance of the Modern Web Browser control.
