Error - Access to the path 'C:\Users\[user name]\AppData\Roaming\Bentley\promis-e V8i(M)' is denied.


 Product(s):Promis.e, Bentley Substation
 Version(s):through 08.11.13.140
 Environment:N/A
 Area:Installation/Configuration
 Subarea:N/A

Error or Warning Message

At startup the following or similar message appears, after which none of the Promis.e/Bentley Substation tools work.

Internal Error
Error Message: Access to the path 'C:\Users\[user name]\AppData\Roaming\Bentley\promis-e V8i(M)' is denied.
TargetSite: Void WinIOError(Int32, System.String)
DeclaringType: System.IO.___Error
Attributes: internal static
MemberType: Method


The path specified in the error message may be a different user's appdata path.

Explanation

This message has been found to occur when the path specified for the LogCommandPath in the UserOptions.xml file is invalid. 

This has occurred when the UserOptions.xml file from a user's system is used as the template user options profile in place of the default.UserOptions.xml file provided with the software, and another user begins to use the software (on the same or different machine) or a user deletes or renames their user appdata folder to resolve a different issue.

How to Resolve

Option 1

Delete or rename the UserOptions.xml file found in the following folder.

[[Application Data (per-user configuration) - promis.e]]
[[Application Data (per-user configuration) - Substation]]

This will cause a new UserOptions.xml file to be created from the template user options file. If this does not help, the problem may be in the template user options file, see Option 2.

Option 2

  1. Use Notepad or other text editor to open the UserOptions.xml file found in one of the following folders.

    [[Application Data (per-user configuration) - promis.e]]
    [[Application Data (per-user configuration) - Substation]]

  2. Find the two lines that begin with <LogCommand> and <LogCommandPath> and replace them with the following:

    <LogCommand>false</LogCommand>
    <LogCommandPath/>

    Or, correct the path to CmdHis.txt specified in the LogCommandPath line. The path to the CmdHis.txt file is typically the same path as the one to the UserOptons.xml being edited.

  3. Save the UserOptions.xml file.

  4. Start the software.

To prevent the error message from recurring, repeat the above process on the template UserOptions.xml file, which is specified in the "User option profile" field on [[Setup]] > System Paths. If managing the data folder path, the specified file will be in the "\Config\Options\" subfolder of the path specified in "Data folder path".

See Also

[[Application Data (per-user configuration) - promis.e]]

[[Application Data (per-user configuration) - Substation]]

 Original Author:Matt_P