Fix: Microsoft Edge Can’t Read and Write to its Data Directory

The error “Microsoft Edge can’t read and write to its data directory” generally suggests a problem with file permissions, preventing Edge from accessing its data directory. However, this isn’t always the cause. Other potential contributors to this issue include problems with the WebView2 Runtime or corruption within Edge’s files. These factors can disrupt normal functionality and lead to the error message.

1. Run Microsoft Edge as an Administrator

One of the simplest solutions to this issue is running Microsoft Edge as an administrator. However, this will only work if you encounter an error while using Microsoft Edge to access a website. If you’re experiencing an issue with a third-party application unrelated to Edge, this method may not resolve the problem, and you should consider trying other solutions.

  1. Simply right-click on Microsoft Edge and select Run as administrator. If the issue is resolved, configure Microsoft Edge to always run as an administrator.
  2. To do that, right-click Microsoft Edge and go to Properties.
  3. Then, go to Compatibility and check Run this program as administrator.
  4. Once done, click Apply and then OK to save the settings.

2. Repair Microsoft Edge WebView2 Runtime

Microsoft Edge WebView2 Runtime is a runtime environment used by many third-party applications to render web content, such as HTML, CSS, and JavaScript, within their native desktop applications using the Microsoft Edge browser’s rendering engine.

Several third-party applications rely on Microsoft Edge WebView2 Runtime for web-based content. Therefore, any issues with the WebView2 Runtime could prevent these applications from accessing necessary resources, potentially resulting in the error message “Microsoft Edge can’t read and write to its data directory.” Therefore, in this step, we will try repairing the Microsoft Edge WebView2 Runtime, which will restore the corrupted files that may be causing the issue.

  1. Right-click the Start Menu or Windows icon and select Run to open the Run dialog.
  2. Type appwiz.cpl and click OK to open Programs and Features in the Control Panel.
  3. Here, double-click Microsoft Edge WebView2 Runtime and click Repair.
  4. Wait for the process to complete. Once done, check if this resolved the error.

3. Check Folder Permissions

To resolve the error message, it is important to ensure that the application has the necessary permissions to access the Microsoft Edge WebView2 Runtime. In this case, we will configure the permissions for Microsoft Edge. If you’re experiencing this issue with another application, make sure it also has the appropriate read and write permissions.

Additionally, you need to check the permissions for the folder where WebView2 stores data for embedded web components used by many applications. By ensuring that the user account has proper permissions, you can prevent the error message from occurring.

  1. Press the Win + R keys simultaneously to open the Run dialog.
  2. Type appdata in the input box and click OK.
  3. Navigate to Local > Microsoft.
  4. Here, right-click Edge and select Properties.
  5. Go to Security and make sure that all user accounts have Full Control over the folder. If you see any missing permissions, take full control of the folder by following the steps described in the linked article.
  6. Once done, navigate to the AppData\Local\Microsoft\Edge directory, right-click the User Data folder, and go to Properties.
  7. Then, go to Security from the top and make sure you have full control over the folder. If you see any missing permissions for the folder, configure the folder permissions by following the steps in the linked article.

If the error continues to appear, contact Microsoft Support, particularly if you’re experiencing this issue with a Microsoft-developed application.

ABOUT THE AUTHOR

Hamza Mohammad Anwar


Hamza Mohammad Anwar is an intermediate JavaScript web developer with a focus on developing high-performance applications using MERN technologies. His skill set includes expertise in ReactJS, MongoDB, Express NodeJS, and other related technologies. Hamza is also a Google IT Certified professional, which highlights his competence in IT support. As an avid problem-solver, he recreates errors on his computer to troubleshoot and find solutions to various technical issues.