Skip to main content

STATUS_SHARING_VIOLATION: File could not be opened with the requested sharing mode

Windows refused to open a file because its sharing settings were incompatible with an existing open handle. Microsoft lists the WebView2 value as -1073741757 (0xC0000043).

What to check​

  1. Identify the file and check whether an update or another app is using it.
  2. Close the relevant app normally if it is safe to do so, or ask your administrator to identify which process holds the file.

Official reference​

Microsoft Learn: WebView2 failure, C++ and Windows runtime errors