When associating the published application to a file extension (such as configuring client to server content redirection), if a user clicks on a file with that extension, the following error message appears:
Failed To Launch Application <Application_Name> with command line “…Path..”
Ensure that the application is installed and that the user has permissions to launch it. “
Without the use of content redirection, the application launched correctly. Also, the issue was reproduced with a new published Notepad.
To fix this issue correct the Working Directory path. For this example with Notepad, change from c:\users\system to C:\windows\system32.
From a CDF trace captured during the launch, the following relevant messages were available:
… Working Dir=[c:\users\SYSTEM]
CreateProcess = Failure
Error = 267
Error 267 translates to “The directory name is invalid”.
Looking at the published application reveals that the working directory is incorrect: