Startup: Windows opens many instances of Edge, each with "ERROR:file_io_win.cc(180)] CreateFile settings.dat: Access is denied. (0x5)" Startup: Windows opens many instances of Edge, each with "ERROR:file_io_win.cc(180)] CreateFile settings.dat: Access is denied. (0x5)" selenium selenium

Startup: Windows opens many instances of Edge, each with "ERROR:file_io_win.cc(180)] CreateFile settings.dat: Access is denied. (0x5)"


I ran into the same issue, and have no reason for why. However, I managed to deal with it by opening the Task Manager (CTRL+SHIFT+ESC), going to the Startup tab, then Disabling each of the multiple Microsoft Edge instances.


I had the same issue in python - disabling Microsoft Edge instances in "Startup Apps" helped but new instances got created/turned on every time the program runs...

In python I added a driver option that seemed to fix the problem: driverOptions.add_experimental_option("excludeSwitches", ["enable-logging"])(see https://stackoverflow.com/a/64146083/9825881)

For C# I haven't tested but the equivalent might be:

List<string> ls = new List<string>();ls.Add("enable-logging");ChromeOptions options = new ChromeOptions();options.AddExcludedArguments(ls);using (IWebDriver driver = new ChromeDriver("C:\\Program\\chromedriver", options)){-----