Home > Citrix, Client > ICA / XenApp wfcrun32 ERROR

ICA / XenApp wfcrun32 ERROR

Issue

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

Cause

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
[WFClient]
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.

Solution

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.

Advertisements
Categories: Citrix, Client Tags: , , ,
  1. 26th June, 2013 at 13:21

    %AppDataDir% doesn’t exist
    I think it should be %AppData%
    So good paths should be %AppData%\ICAClient\APPSRV.INI and %AppData%\ICAClient\wfcwin32.log

    on XP

  2. 27th June, 2013 at 18:25

    Hi Marco,

    The %AppDataDir% is a variable that’s only available within Group Policy Preferences (see here: http://blogs.technet.com/b/grouppolicy/archive/2009/05/13/environment-variables-in-gp-preferences.aspx). If you’re writing your own script, then you would use %AppData%.

    Regards,

    Jonathan

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: