Error Loading Scenario - "Access to the path is denied" (Even when running as Administrator)

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
hanzawa1991
Posts: 74
Joined: Tue Apr 05, 2022 9:05 am

Error Loading Scenario - "Access to the path is denied" (Even when running as Administrator)

Post by hanzawa1991 »

Hello,

I am experiencing an issue when trying to load a custom scenario created by another user. The game is installed on my D: drive, inside the Program Files (x86) directory.

When I try to load the scenario, I receive the following error: "ERROR - Unable to load scenario!"

I have already tried the most common solution—running the game as Administrator—but this did not solve the problem.

Here is the complete error log. I have anonymized my scenario's filename (to My_Scenario_File.scen). The key exception message appears to be "Access to the path... is denied."

ERROR - Unable to load scenario! Please copy this entire text and submit it to the dev team for investigation.

Exception: Access to the path 'D:\Program Files (x86)\Steam\steamapps\common\Command - Modern Operations\Scenarios\DDD\My_Scenario_File.scen' is denied.

Exception source: mscorlib
Stack Trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at Command_Core.ScenContainer.LoadFromFile(String theFileName)
at Command.LoadScenario.eUex5PscwVD8erPRnjyY(Object )
at Command.LoadScenario.LoadFromPath(String thePath, String selFilename)
Since running as Administrator did not work, I suspect this might be a more complex file permission issue, perhaps related to Windows Security, "Controlled folder access," or an antivirus program.

Could the development team please investigate what might be causing System.IO.FileStream.Init to fail with an access denied error, even with administrative privileges?

Any help would be greatly appreciated.

Thank you.
Raptorx7_slith
Posts: 838
Joined: Fri Jul 26, 2013 10:14 pm

Re: Error Loading Scenario - "Access to the path is denied" (Even when running as Administrator)

Post by Raptorx7_slith »

Try reinstalling or verifying your game files through Steam. The issue may be because you're pointing towards a copied EXE or shortcut that doesn't have proper permissions
Dimitris
Posts: 15569
Joined: Sun Jul 31, 2005 10:29 am
Contact:

Re: Error Loading Scenario - "Access to the path is denied" (Even when running as Administrator)

Post by Dimitris »

As a last resort, you can try installing the game outside the "Program Files" directory tree and see if that helps.
Post Reply

Return to “Tech Support”