question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find the driver

See original GitHub issue

Greetings,

I’ve been using Playwright Sharp and it’s been working really well on my local development machine. However, when I try to deploy my application to one of my servers, I am sometimes greeted with the following exception:

Unhandled exception. System.AggregateException: One or more errors occurred. (Driver not found in any of the locations.)
 ---> PlaywrightSharp.PlaywrightSharpException: Driver not found in any of the locations.
   at PlaywrightSharp.Transport.Connection.GetExecutablePath() in /home/runner/work/playwright-sharp/playwright-sharp/src/PlaywrightSharp/Transport/Connection.cs:line 270
   at PlaywrightSharp.Transport.Connection.GetProcess(String driverExecutablePath) in /home/runner/work/playwright-sharp/playwright-sharp/src/PlaywrightSharp/Transport/Connection.cs:line 233
   at PlaywrightSharp.Transport.Connection..ctor(ILoggerFactory loggerFactory, TransportTaskScheduler scheduler, String driverExecutablePath, String browsersPath) in /home/runner/work/playwright-sharp/playwright-sharp/src/PlaywrightSharp/Transport/Connection.cs:line 74
   at PlaywrightSharp.Playwright.CreateAsync(ILoggerFactory loggerFactory, TransportTaskScheduler scheduler, String driverExecutablePath, String browsersPath, String debug) in /home/runner/work/playwright-sharp/playwright-sharp/src/PlaywrightSharp/Playwright.cs:line 109

This exception is thrown when I call CreateAsync() or InstallAsync() as well. Here’s what I’ve tried so far:

  • Call Create and Install as the first line of code in my application, this only threw the above exception
  • Attempt to build and dotnet publish my application so the build-time Playwright tools could do their magic
  • Ran npx playwright install to install any missing drivers. This returns without any errors, but the exception still occurs

The %USERPROFILE%\AppData\Local\ms-playwright contains the following directories:


    Directory: C:\Users\aevitas\AppData\Local\ms-playwright


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----          3/2/2021   9:49 AM                .links
d-----         2/27/2021  11:33 PM                chromium-844399
d-----         2/28/2021   9:35 AM                chromium-854489
d-----         2/28/2021   9:35 AM                ffmpeg-1005
d-----         2/27/2021  11:33 PM                firefox-1225
d-----         2/28/2021   9:35 AM                firefox-1234
d-----         2/27/2021  11:33 PM                webkit-1423
d-----         2/28/2021   9:35 AM                webkit-1438

Playwright did initially work on this server for a while, but after a redeploy without any significant code changes, it randomly stopped working. Is there anything I’m missing here?

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:54 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
avodovnikcommented, Jun 9, 2021

@andreasvatne We’ve published a significant new release this morning - now available as Microsoft.Playwright on NuGet. It should also fix the problem you were seeing.

2reactions
andreasvatnecommented, Jun 9, 2021

@kblok Do you know when a new release including the dotnet publish fix will be out?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Windows could not find driver software for your ...
Solution 1: Download the driver from your device manufacturer's website manually. To solve this problem, you can choose to download the driver ......
Read more >
Windows couldn't find drivers for my device even when ...
Firstly Make sure you turn on "show hidden devices" if that's not the issue then Determine whether the device driver is found in...
Read more >
How to easily find drivers for Unknown Devices in Windows
To find drivers for hardware that Windows refuses to recognize, open Device Manager (a search from the Start menu or Windows 8 Start...
Read more >
How to Fix “Windows Could Not Find a Driver for Your ...
How to Fix “Windows Could Not Find a Driver for Your Network Adapter” Error · Enable the Network Adapter · Update Your Network...
Read more >
How To Fix We Couldn't Find Any Drives While Installing ...
Step 1: go to check if the hard disk can be recognized by BIOS. · Step 2: install/update the storage controller driver. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found