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

This error is common when opening a lot of applications in Windows

Reading time icon 3 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

What do I do if Microsoft Edge can't read and write to its data directory error
Instead of fixing issues with Edge, upgrade to a better browser: Opera One You deserve a better browser! Over 300 million people use Opera daily, a fully-fledged navigation experience coming with various built-in packages, enhanced resource consumption, and great design.Here's what Opera can do:
  • Easy migration: Use the Opera One assistant to transfer existing data, such as bookmarks, passwords, and more;
  • Optimize resource usage: Opera One uses your Ram more efficiently than Edge;
  • Enhanced privacy: Free and unlimited VPN integrated;
  • No ads: Built-in Ad Blocker speeds up the loading of pages and protects against data-mining
  • โ‡’ Get Opera One

The Microsoft Edge can’t read and write to its data directory error is a common issue when you open many apps such as Microsoft Power BI, Autocad, and even Teams. Mainly, this problem is due to the fact that you installed the said software from your admin account and you’re now opening it as a regular user on the machine.

The issue is triggered by Microsoft’s WebView2, or EBWebView, as you see it in the error path, which is trying to create a data folder in your app, but it doesn’t have sufficient privileges to do so.

How do I do if Microsoft Edge can’t read and write to its data directory?

1. Run the app as administrator, or log in as admin

  1. Right-click the shortcut of your app or its executable file and select Run as administrator.
  2. If this doesn’t work, log out of your current profile in Windows and log back in with the Administrator account.
  3. Make the necessary changes to the app if the error was triggered when you were editing something in the app.
  4. Try to log back into the Windows account you were using before and try again.

This solution worked for most users so you should try it before anything else.

2. Repair Edge and WebView2 using Control Panel

  1. Click the Start button, type control panel and open the app from the results.
  2. Click on Uninstall a program from the bottom.
  3. Search for edge, select the app and click on Change.
  4. Click on Repair when prompted.
  5. After the repair process is finished, do the same for Microsoft Edge WebView2 Runtime.
  6. Check if the problem has been fixed.

The Microsoft Edge can’t read and write to its data directory error can also be due to Edge or WebView2 apps file corruption and by repairing them, you will make things right again.

3. Change Edge permissions using PowerShell (for advanced users)

  1. If the above steps donโ€™t work, you can use PowerShell to check and modify permissions for the Edge data directory.
  2. Hereโ€™s a sample PowerShell script you can try:
  3. Replace C:\Path\To\Edge\Data with the actual path to Edge’s data directory:
    • $edgeDataDir = ‘C:\Path\To\Edge\Data’
    • $acl = Get-Acl $edgeDataDir
    • $user = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
    • $rule = New-Object System.Security.AccessControl.FileSystemAccessRule($user, 'FullControl', 'Allow')
    • $acl.SetAccessRule($rule) Set-Acl $edgeDataDir $acl
  4. Run this script in an elevated PowerShell window (run PowerShell as administrator) to adjust permissions.

Remember to back up any important data before making changes. If youโ€™re still experiencing issues, consider reaching out to Microsoft support or the specific programโ€™s support team for further assistance.

We hope that after applying the solutions above, the Microsoft Edge can’t read and write to its data directory error is a thing of the past.

You might also be interested in reading our guide on how to fix the STATUS_ACCESS_DENIED error on Microsoft Edge.

If Microsoft Edge keeps crashing, click the highlighted link for the complete guide that will help you fix it.

Did you fix the Edge error by using our solutions? Let us know in the comments below.

More about the topics: microsoft edge

User forum

0 messages