Installation & Licensing Center
ERROR - System Argument Exception When Running a Simulation
Authored by Aaron Schedlin December 8th, 2023 1882 views 0 likes KB2304010
ERROR
When running a simulation, you get the below error message:
Object must be a root directory (“C:\”) or a drive letter (“C”).
Details:
System.ArgumentException: Object must be a root directory (“C:\”) or a drive letter (“C”).
At System.IO.DriveInfo..ctor (String driveName)
At Ansys.Core.Persistence.ProjectSaveHandler.DoProjectSave()
…
Ansys.Core.Commands.CommandFailedException: Object must be a root directory (“C:\”) or a drive letter (“C”).
Software & Version
Workbench 2022R1
*This example was taken from this version but is not necessarily limited to this version.
Description/Cause
In this case, a new version of Ansys was installed and overwrote the default save location. The current user did not have permissions to save to the default save location.
*The cause(s) we identified in this documented instance may not be the only cause(s) for this error.
Solution
- Correct the default save location to what it was set to prior. Tools>Preferences>Project Management
- Edit user permissions to the default save location so that the current user can save projects there.