Posts Tagged ‘error’

ICA / XenApp wfcrun32 ERROR

6th August, 2011 2 comments


The following error message is displayed during the logon process: “wfcrun32 ERROR – Failed to set Event Logging.


During the Citrix Client installation, a file called APPSRV.INI is created in the default user’s <AppData>\ICAClient directory. This INI file contains a property called LogFileWin32, which references the full path of the wfcwin32.log file within that user’s <AppData>\ICAClient directory.

For example, on Windows XP, the file is located in C:\Documents and Settings\default user\Application Data\ICAClient\APPSRV.INI and contains
LogFileWin32=C:\Documents and Settings\default user\Application Data\ICAClient\wfcwin32.log

When a new user logs on a workstation (or an existing user runs the Citrix client for the first time), the setting in the default user APPSRV.INI file are copied. Unfortunately this copies the path for the LogFIleWin32 property and points to the default user’s <AppData>\ICAClient directory.

As users can only write to their own directory and not into another user’s directory, this generates an error during the logon process, when the ICA client is initialised as it does not have access to update the file.


Immediately after the installation of the Citrix Client delete the APPSRV.INI file from the default user’s <AppData>\ICAClient directory. This prevents the incorrect setting being copied to other user profiles. The user’s INI file is updated with the correct settings. The following command accomplish this:
Windows XP:     del %SystemDrive%\Documents and Settings\default user\Application Data\ICAClient\APPSRV.INI
Windows 7:        del %SystemDrive%\Users\Default\AppData\Roaming\ICAClient\APPSRV.INI

Alternatively, each user’s APPSRV.INI file needs to be updated. This can be a large task, especially on an enterprise network, however, Group Policy Preferences can help. Create a new INI item in the User Configuration -> Preferences area of an appropriate Group Policy Object with the following settings:

Action: Update
File path: %AppDataDir%\ICAClient\APPSRV.INI
Section name: WFClient
Property name: LogFileWin32
Property value: %AppDataDir%\ICAClient\wfcwin32.log

This will update the appropriate setting during logon.

Categories: Citrix, Client Tags: , , ,