Category Archives: Uncategorized

App-V 5 SP2 and ‘The application failed to launch’ issue – Error code 0x0FD01F25-0000007B

If you packaged an application using App-V 5 SP2 and you use folder redirection for AppData Roaming on a RDS server then you may get the following error when starting the application in seamless mode (e.g. through XenApp):

Error Pop-Up

There are several causes that may bring to this error and the best way to start your troubleshooting is using the EventViewer (one of the causes is documented here). In fact, by enabling the Analytic and debug logs you will be able to get a big amount of information related to the App-V client activity:



Each debug item must be enabled before getting any log:

There is a nice script that automatically enables or disables all App-V logs and it can be found here

In my specific case, I was streaming an App-V application to a Citrix XenApp 6.5 server and publishing it as a published application through XenApp. When starting the application I got the ‘The application failed to launch’ pop-up and the EventViewer got populated with the following two errors:



The application was not being able to access and create some important folders inside the %userprofile%/AppData/Roaming folder; furthermore, the application was able to work if AppData Roaming folder redirection was removed.

I eventually found out that this was due to the fact that the ‘Move the contentsof AppData(Roaming) to the new location’ option was disabled in the GPO section of the AppData(Roaming) folder redirection properties. The solution is quite simple and it consists in enabling the setting below:


With this settings enabled, the folders required by the streamed application are correctly created inside the %userprofile%/AppData/Roaming folder and the application is able to start and run without issues.

Application written with GUPTA 5.2 and published through XenApp 5 returns “Empty Array” error

System Version: XenApp 5 for Windows 2003 – GUPTA 5.2 Application (ported from GUPTA 4.1)

Problem Summary: after an undefined amount of time the application starts to show pop-ups with the following alert: “Empty Array” and then it becomes unusable. OR The application get stuck and becomes unusable.


Cause: the problem occurs when using applications (through ICA) written with GUPTA version x .x  and then ported to a new version of GUPTA. In my case the application has been ported from GUPTA version 4.1 to GUPTA version 5.2. The problem is caused by the XenApp’s Seamless Engine, in fact, if the application is not published in seamless mode the problem doesn’t occur.

 The XenApp seamless engine sends some messages to the application called “WM_QUERYDRAGICON”, such messages are used to acquire information about icons associated to the application’s window, but, with some GUPTA applications they bring about unexpected results .In this particular case, the sending of this messages causes the GUPTA application to continually create GDI objects (about 4 per second) without removing them, exhausting quickly the memory space given to the application instance.

 The “Empty Array” message is displayed when the number of GDI objects created by the application reaches 9.999. This value is controlled by the following registry key:

[HKEY_LOCAL_MACHINE/Software/Microsoft/Windows NT/CurrentVersion/Windows]“ GDIProcessHandleQuota”dword 10000

In my case I set the value at 20.000 for testing purposes (that’s why the task manager in the picture shows 19.999 GDI objects), but the default value is 10.000, allowing then for 9.999 GDI objects.

Please note: if the application is written in GUPTA 5.2 from scratch the problem doesn’t occur.


Solution: to solve the problem you need to create the following key:

 [HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Citrix/wfshell/TWI]”SeamlessFlags”= dword 0x200 hex

Such key prevents XenApp to send WM_QUERYDRAGICON messages.


Support and