Error '(0) The directory name is invalid' is shown with the redirection of %tmp% and %temp% variables

Version 5


    Consider the following scenario:

    • The variables %tmp% and %temp% are redirected to another location by adding them as a variable in Ivanti Workspace Control.
    • A user logs off from an Ivanti Workspace Control managed session.

    In this scenario, the following error message is displayed:


    Error #: 0

    Error Description: The directory name is invalid.     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)    at System.IO.__Error.WinIOError()    at System.IO.Path.InternalGetTempFileName(Boolean checkHost)    at RES.WorkspaceManager.Composer.modDesktopIcons.i(IntPtr a, Boolean b, List`1& c)    at RES.WorkspaceManager.Composer.modDesktopIcons.g(Boolean a)

    Procedure: SavePositionDesktopItems

    Process: pfwsmgr.exe



    The %temp% and %tmp% variables are loaded into memory at the beginning of the user session and are used for the remainder of the session.



    The variables %temp% and %tmp% should be available before Ivanti Workspace Control is started and should, therefore, not be redirected through Ivanti Workspace Control itself.


    Both user and system %temp% and %tmp% variable should be available:



    To load the change of the system environment variables into memory, a reboot is required.