Fix: 'Process Cannot Access File' Error In Elite Dangerous
Experiencing the frustrating "Process cannot access file" error in Elite Dangerous? Seeing that dreaded blue screen after the 'Colonisation' update? This article dives into the causes and potential solutions for this annoying issue, specifically focusing on the Cargo.json file error.
Understanding the Error
The error message IOException: The process cannot access the file 'C:\Users\Anthony\Saved Games\Frontier Developments\Elite Dangerous\Cargo.json' because it is being used by another process. indicates that Elite Dangerous, or more likely, another application on your system, is attempting to read or write to the Cargo.json file at the same time. This simultaneous access leads to a conflict, resulting in the game crashing or displaying an error.
Common Causes
Several factors can trigger this error:
- Conflicting Software: Third-party applications that monitor or interact with Elite Dangerous game files (such as overlay programs, trading tools, or game enhancers) can sometimes lock the
Cargo.jsonfile. - Antivirus Interference: Aggressive antivirus software might mistakenly flag Elite Dangerous or its related files as suspicious, leading to file access restrictions.
- Background Processes: Other processes running in the background could be intermittently accessing the
Cargo.jsonfile, causing conflicts. - Game Bugs: As indicated in the original report, issues arising from game updates like 'Colonisation' can introduce new bugs that cause file access problems.
- File System Errors: Although less common, underlying file system errors on your hard drive could contribute to the problem.
Troubleshooting Steps
Let's explore several methods to resolve this persistent issue.
1. Identify and Close Conflicting Software
The primary suspect is often other software interfering with Elite Dangerous. Close any applications that interact with the game or monitor system resources.
- Overlay Programs: Disable overlays like those from Discord, Steam, or Nvidia GeForce Experience.
- Trading Tools: Exit any third-party trading tools or market analysis programs you might be using with Elite Dangerous.
- System Monitoring Software: Temporarily disable resource monitoring tools like MSI Afterburner or similar applications.
After closing these applications, restart Elite Dangerous to see if the error is resolved. Closing unnecessary programs can often free up the Cargo.json file.
2. Adjust Antivirus Settings
Your antivirus software might be overly protective, preventing Elite Dangerous from properly accessing its files. Configure your antivirus to exclude the Elite Dangerous game directory and the Cargo.json file from real-time scanning.
- Add Exceptions: Add the Elite Dangerous installation folder (usually found in
C:\Program Files (x86)\Frontier\EDLaunchor a similar location) to your antivirus's exclusion list. - Exclude
Cargo.json: Specifically exclude theCargo.jsonfile located atC:\Users\Anthony\Saved Games\Frontier Developments\Elite Dangerous\. - Disable Real-Time Scanning (Temporarily): As a test, temporarily disable real-time scanning to see if it resolves the issue. Remember to re-enable it afterward!
3. Run Elite Dangerous as Administrator
Granting administrator privileges to Elite Dangerous can resolve file access issues caused by insufficient permissions.
- Locate the Executable: Find the Elite Dangerous executable file (usually
EliteDangerous64.exeor similar) in the game's installation directory. - Run as Administrator: Right-click the executable and select "Run as administrator."
This ensures the game has the necessary permissions to read and write to the Cargo.json file.
4. Verify Game File Integrity
Corrupted or missing game files can lead to various errors, including file access problems. Use the game launcher to verify the integrity of the game files.
- Steam Users: Right-click Elite Dangerous in your Steam library, select "Properties," go to the "Local Files" tab, and click "Verify integrity of game files..."
- Frontier Launcher Users: Open the Frontier Launcher, select Elite Dangerous, click "Options," and then click "Verify Game Files."
This process will check for and replace any corrupted or missing files, potentially resolving the Cargo.json error.
5. Check Disk for Errors
Underlying file system errors on your hard drive can sometimes cause file access problems. Run a disk check to identify and repair any errors.
- Open Command Prompt as Administrator: Press the Windows key, type "cmd," right-click "Command Prompt," and select "Run as administrator."
- Run
chkdsk: Typechkdsk /f C:(replaceC:with your drive letter if Elite Dangerous is installed on a different drive) and press Enter. You might be prompted to schedule the disk check for the next restart. TypeYand press Enter to confirm.
Restart your computer to allow the disk check to run. This process can take some time, but it can resolve underlying file system issues.
6. Reinstall Elite Dangerous
If none of the above solutions work, a complete reinstallation of Elite Dangerous might be necessary. This ensures a clean installation and eliminates any potential conflicts or corrupted files.
- Uninstall the Game: Uninstall Elite Dangerous through the Steam client or the Windows Control Panel.
- Delete Remaining Files: Manually delete any remaining files and folders in the game's installation directory and the
C:\Users\Anthony\Saved Games\Frontier Developments\Elite Dangerous\directory. - Reinstall the Game: Reinstall Elite Dangerous through Steam or the Frontier Launcher.
7. Examine the Game Logs
Delving into the game logs may provide insights into the root cause of the problem. The provided log snippet is useful. The line "event":"Fileheader" indicates a starting point for the game's logging.
- Locate the Logs: The Elite Dangerous game logs are typically located in the
C:\Users\Anthony\Saved Games\Frontier Developments\Elite Dangerous\directory. - Analyze the Logs: Open the log files (usually named
Journal.*.log) and search for any error messages or warnings related to file access or theCargo.jsonfile. Pay close attention to timestamps around the time of the crash.
8. Contact Frontier Support
If you've exhausted all troubleshooting steps and are still encountering the error, reach out to Frontier Developments' support team for assistance. Provide them with detailed information about the error, your system configuration, and the troubleshooting steps you've already taken. The exception message and stack trace included in the original report will be helpful for their investigation. Also attach your latest game logs to the ticket.
Conclusion
The IOException related to the Cargo.json file in Elite Dangerous can be a persistent and disruptive issue. By systematically working through the troubleshooting steps outlined above, you can identify and resolve the underlying cause, allowing you to return to exploring the galaxy without interruption. Remember to consider software conflicts, antivirus interference, file permissions, and game file integrity when troubleshooting this error. Also remember to check the Elite Dangerous official forum for additional help.