UNHANDLED EXCEPTION ERROR
1) Unhandled Exception error message:
this process cannot access the file c:\users\Documents\NinjaTrader8\_Workspace.xml or UI.xml files
because it is being used by another process
This error indicates that something on Windows is preventing NinjaTrader from accessing its files. Or Windows settings, or Antivirus settings, or folders settings. and it is not the NinjaTrader Platform problem.
Please test for the error after completing each of the possible solutions below:
1. REINSTALL THE NINJATRADER DESKTOP APP
You mentioned that you had already reinstalled the platform, so if you have followed this step, you can move on to the next step.
Reinstalling NinjaTrader won't affect your custom settings.
Close all running applications.
Do not modify the Documents/NinjaTrader folder.
Uninstall NinjaTrader via the Windows Settings menu
Navigate to C:\Program Files and delete the NinjaTrader 8 folder if it exists.
Reboot your PC.
Download and reinstall NinjaTrader from the Download page on your NinjaTrader Account Dashboard.
Before restarting, ensure Windows is up to date (Windows Settings > Update & Security). Manually check for updates and reboot if needed.
2. CHECK WINDOWS FIREWALL/ANTI-VIRUS
Ensure your firewall, antivirus, or backup software is not interfering with NinjaTrader by adding exceptions for NinjaTrader in these programs.
3. FOLDER PERMISSIONS
Verify the NinjaTrader Documents folder has proper permissions
Navigate to the Documents folder.
Right-click on NinjaTrader 8 > select Properties.
Ensure Read-only and Hidden attributes are unchecked.
When prompted, select Apply changes to this folder, subfolders, and files > click OK.
3. DISABLE CONTROLLED FOLDER ACCESS
Press the Windows Key and search for "Controlled Folder Access."
Select Controlled Folder Access and turn it off (if enabled).
Note: Administrator rights may be required to change this setting. Contact your network/PC administrator if needed.
For additional details on Controlled Folder Access, refer to Microsoft's official documentation.
If the problem remains, you can fix this problem (I guarantee it) by reseting your windows installation to initial version.
RESET WINDOWS 11 INSTALLATION
( If necceceary) To reset a Windows 11 installation, go to Settings > System > Recovery > Reset this PC, then choose whether you want to "Keep my files" for a refresh or "Remove everything" for a full reinstall, and follow the on-screen instructions to complete the process; make sure to back up your important data before resetting your computer.
Delite/removey/rename NinjaTrader Folders:
- MyDocuments/NinjaTrader8
- c:/Program Files/NinjaTrader 8
Key steps:
- Access Settings: Open the Start menu and click on "Settings".
- Navigate to Recovery: Select "System" then "Recovery".
- Initiate Reset: Click "Reset this PC".
- Choose Option: Select "Keep my files" to keep personal data or "Remove everything" to completely wipe the drive.
- Confirm and Reset: Follow the on-screen instructions to confirm your choice and start the reset process.
Download the latest installation of the NinjaTrader platform from ninjatrader.com and install it. Test this installation before installing any indicators to make sure it works well.