Microsoft Edge Can't Access Data Directory – Fix Steps
In this article
Yes – you can resolve the "Microsoft Edge can't read and write to its data directory" error by correcting folder permissions, repairing the user profile, or resetting the data directory.
Edge stores bookmarks, extensions, cookies, and browsing history in a user‑specific data folder (usually %LOCALAPPDATA%\Microsoft\Edge\User Data). If the operating system blocks read/write access, Edge will fail to launch or will display the error message. The steps below walk you through checking permissions, fixing corrupted files, and restoring normal operation without losing important data.
What You'll Need
- Administrator access on the Windows PC
- File Explorer
- Windows Settings app
- Microsoft Edge installer (optional, for reinstall)
- A backup location (USB drive, external HDD, or another folder) if you want to keep existing bookmarks or extensions
Step-by-Step
- Close Microsoft Edge completely. Right‑click the Edge icon in the taskbar and choose Close window, then open Task Manager (Ctrl+Shift+Esc) and end any remaining
msedge.exeprocesses. - Open File Explorer and navigate to the data directory:
%LOCALAPPDATA%\Microsoft\Edge\User Data. You can paste this path into the address bar and press Enter. - Right‑click the
User Datafolder and select Properties**. Switch to the Security tab.- Click Edit and ensure your user account (or the Users group) has Full control. If it does not, check the Allow box for Full control and click Apply.
- If the Advanced button shows that the owner is SYSTEM or another account, click Change next to Owner, type your user name, click Check Names**, then **OK**. Check the box Replace owner on subcontainers and objects and apply.
- After fixing permissions, attempt to start Edge again. If the error persists, the folder may contain corrupted files.
- Create a backup of the current
User Datafolder:- Copy the entire
User Datafolder to a safe location (e.g.,D:\EdgeBackup).
- Copy the entire
- Rename the original folder to
User Data_old(right‑click → Rename). This forces Edge to generate a fresh profile on next launch. - Launch Microsoft Edge. A new
User Datafolder will be created with default settings. Verify that Edge opens without the error. - If you need your old bookmarks, extensions, or passwords, you can selectively copy subfolders from the backup:
Default\Bookmarks– contains saved bookmarks.Default\Extensions– holds installed extensions.Default\Login Data– stores saved passwords (requires Edge to be signed in with the same Microsoft account).
User Data\Defaultfolder, then restart Edge. - If the problem still appears, run the built‑in repair tool:
- Open Settings > Apps > Apps & features.
- Find Microsoft Edge in the list, click the three‑dot menu, and choose Modify (or Repair if the option is shown).
- Follow the on‑screen prompts; this operation reinstalls Edge binaries without touching your profile data.
- As a last resort, uninstall Edge (if the option is available) and reinstall the latest stable version from the official Microsoft website. This removes any lingering registry entries that could interfere with folder access.
Common Mistakes
Below are errors people often make while troubleshooting this issue:
- Changing permissions on the wrong folder. The error specifically references the
User Datadirectory; adjusting permissions onProgram FilesorTempwill not help. - Skipping the ownership step. If the folder owner is
SYSTEM, granting your account Full control may still be denied until you change the owner. - Deleting the entire
User Datafolder without backup. This erases bookmarks, saved passwords, and extensions permanently. - Using a third‑party cleaner. Some cleaners remove Edge's profile files, reproducing the same error.
- Running Edge as a different user. If you launch Edge under a different Windows account, that account may lack permission to the original profile folder.
Tips
- Keep Edge updated automatically (Settings > About Microsoft Edge) because newer builds often include fixes for profile corruption.
- Periodically export your bookmarks (Edge > Settings > Profiles > Export bookmarks) so you have an independent copy.
- If you use a corporate device, group policy may enforce read‑only profiles. Contact your IT admin to whitelist the Edge data directory.
- When copying files back from a backup, ensure Edge is closed; otherwise the files may be locked and the copy will fail.
- Consider enabling Windows Controlled Folder Access (Windows Security > Virus & threat protection > Manage ransomware protection) only after you have verified Edge works, as this feature can block Edge from writing to its own folder.
Troubleshooting
If the steps above do not resolve the issue, follow this escalation path:
- Restart the computer. A simple reboot clears locked handles and can reset temporary permission glitches.
- Check Windows updates. Go to Settings > Windows Update and install any pending updates, then repeat the permission fix.
- Run System File Checker. Open Command Prompt as administrator and run
sfc /scannow. Repair any corrupted system files that might affect folder ACLs. - Inspect the Event Viewer. Look under Windows Logs > Application for entries related to
MicrosoftEdgeorAppModelthat may hint at a deeper OS‑level problem. - Disable third‑party antivirus temporarily. Some security suites block Edge from modifying its own directory. Disable, test Edge, then re‑enable.
- Create a new Windows user profile. Log out, create a fresh local account, sign in, and launch Edge. If it works, the issue is isolated to the original user’s profile permissions.
- Reset Edge completely. In Settings > Reset settings, choose Restore settings to their default values. This clears custom settings but retains the data folder; combine with a folder rename if corruption persists.
- Contact Microsoft Support. Provide them with the Event Viewer logs and a description of the steps you have already taken.
Frequently Asked Questions
Why does Edge show the error after a Windows update?
Updates can reset ACLs on the User Data folder, removing your account’s Full control. Re‑applying permissions restores functionality.
Will renaming the User Data folder delete my history?
Renaming does not delete files, but Edge will start with a fresh profile. You can copy back the History file from the backup if you need the old entries.
Can I move the Edge data directory to another drive?
Edge does not provide an official option to relocate the folder. Moving it manually will break the built‑in path and cause the same error.
Is the error related to Controlled Folder Access?
Yes. If Controlled Folder Access is on and Edge is not on the allowed apps list, Windows will block write operations, producing the same symptom.
Do extensions cause the data‑directory error?
Corrupted extension files can trigger profile corruption, but the primary cause is usually permission loss. Disabling extensions after restoring the profile helps isolate the culprit.
Will reinstalling Edge delete my saved passwords?
No. Passwords are stored in the Login Data SQLite file inside the profile folder. As long as you keep a backup of that file, you can restore it after reinstall.