This may be caused by running ChromeDriver at the same time. In this case, other errors may occur, such as “failed to write the first run file” or “cannot create default profile directory”.
My solution was to specify the user-data-dir option. Two concurrent Chromedriver should not use the same user data directory.
chromeOptions.AddArgument("--user-data-dir=C:\\tmp\\chromeprofiles\\profile" + someKindOfIdOrIndex);
You can, of course, change the path to what you want :)
source share