Working Papers on Terminal Server/Citrix Guide

Working Papers on Terminal Server/Citrix Guide

Overview

This is a best practices and troubleshooting guide for installing and configuring CaseWare products in a Citrix or Terminal Server environment. The document applies to standalone Citrix/Terminal servers and to Citrix server farms.

If you are unable to find the information you require for certain steps in this document, you can also find information on every aspect of our products using their built-in online help systems.




Installation 

Installing CaseWare products on a Citrix/Terminal Server environment involves three basic steps:

1. Install the CaseWare products to the Citrix/Terminal server.
2. Perform post-installation configuration as detailed in this guide.
3. Publish the applications to the various Citrix client sessions (Citrix only).

Three optional steps can be performed to enhance user management and security:

1. Use roaming profiles to manage users accessing multiple Citrix servers or a Citrix farm. More information on roaming profiles can be obtained from Microsoft here.
2. Install the Data Store Administration Tool and create a new Data Store. For instructions, click here.
3. Set up Working Papers Protection if you require it in your environment.

Once these steps have been completed, users should have access to all of the applications. If any issues persist, consult Troubleshooting or contact Technical Support.

System Requirements 

For the system requirements of the latest version of Working Papers, click here.

Installing Working Papers on Citrix and Terminal Server

Access the Citrix server using remote desktop for all operations listed below.

Note: Avoid using the local console to install CaseWare applications.

First, make sure to remove any existing versions of Working Papers:

1. Ensure that all previous versions of Working Papers are uninstalled.
2. Ensure that all previous versions of Working Papers are removed from the file system. Files in the /data folder can be retained, but all other Working Papers program files must be deleted.

Note: Program files include *.exe and *.dll.

3. Use the Citrix Delivery Services Console/App Centre to ensure that all previously published Working Papers installations on Citrix Web Access are deleted.
4. Reboot the server.

Working Papers can be installed in two different ways:

GUI method:

1. Click Control Panel | Programs | Install Application on Remote Desktop.
2. Double-click Working Papers.
3. After installation is complete, publish Working Papers in the Citrix Delivery Services Console/App Centre.

Command line method:

1. Open a command prompt and enter the following command to enable Install mode:

Change User /Install

2. Right-click on the Working Papers installation file (Cwin32.exe or Cwin64.exe) and select Run as Administrator to install Working Papers.
3. After installation is complete, enter the following command to switch back to Execute mode:

Change User /Execute

Notes
  1. Citrix publishing requires you to specify an executable and a working directory. The executable used to launch Working Papers is called Cwin32.exe (or Cwin64.exe for 64 bit installations). This file is located in the CaseWare root installation folder and should be referenced by the Command line field. The Working directory field should be set to the CaseWare root installation folder.
  1. More information on publishing applications in a Citrix environment can be found on the Citrix web site. If your Citrix server is running a different version of the software from the version described in the article, you will need to search the Citrix site for more information.
  1. Working Papers works in Citrix VDI with a network license.
  1. Each Citrix VDI session is treated as a separate workstation installation and requires the SMB2 patches.

Silent Installation

For information on performing silent (unattended) installations of CaseWare products, click here. Silent installations cannot be performed with electronic licensing copies.



Best Practices

This section details Working Papers features that can be modified to improve performance on a Citrix or Terminal server.

Performance Considerations

Working Papers’ performance in a Citrix or Terminal Server environment can be affected by two main factors: CPU usage and network bandwidth.

If you are experiencing any performance issues, verify that you have allocated adequate resources in these areas.

The following recommendations apply to the storage of Working Papers files in your Citrix environment.
  1. Never store Working Papers files on the local drive (tsclient) of the PC accessing the Citrix environment.
  2. In order to ensure your Working Papers files are available to clients who are not using a Citrix session, store your files on an area of your network that can be accessed under Windows as a mapped drive.
FairShare

For Windows 2012, CaseWare International has received reports that Working Papers performs poorly when users are also running FairShare. If FairShare has affected your performance, we recommend that you turn it off.

Network Licensing 

The Commuter License Check Out feature is designed for users who check out portable work computers. When it is used in a Citrix environment, one user can sometimes lock all other users on the network out of Working Papers. We recommend not using Commuter License Check Out in a Citrix/Terminal Server environment.

Live Update

Live Update immediately distributes changes made in an engagement file to all other users in the same engagement. Any open windows that have their content modified by any user are immediately refreshed, which consumes network bandwidth and CPU processing power.

Live Update should be disabled in a Citrix/Terminal server environment. The best way to ensure that it is always turned off is to add a line to the CV.VER file that Working Papers checks for configuration information on startup.

To disable Live Update:

1. Open the CV.VER file in Notepad. This file is located in the root Working Papers installation folder.
2. On a new line, enter 'liveupdate=0'.
3. Save and close the CV.VER file. Ensure that the Save as type field is set to All Files (*.*) so that you aren't renaming CV.VER as a text file.

Note: Do not use the setting found in Tools | Options | Advanced | Networking to disable Live Update. This setting only affects the active file.
Modifying the CV.VER file disables Live Update for all Working Papers files.

User List Pane

The User List pane can cause an increase in network traffic when it is enabled and should be disabled unless it is essential to your processes. This is a per-user setting and should be modified for each user.

To disable the User List pane:

1. Open the Start Menu in Windows and either:
  1. Select Run...
  2. Select the Search programs and Files field
2. Type regedit.exe and press Enter. The Registry Editor opens.
3. In the Registry Editor, find the key HKEY_CURRENT_USER\Software\CaseWare International\Working Papers\2018.00\Settings\UserListWindow.
4. Double-click the key to open it. Change the value from 1 to 0.
5. Click File | Exit.

This registry setting will be applied the next time you open Working Papers.

History Settings

History settings can affect the performance of networked Working Papers environments. These settings are applied on a per-file basis in Working Papers, so you will need to apply these best practices to each engagement file.

1. Click Engagement | History | Auto-Compare.
2. Ensure that Automatically Compare Documents is set to None.
3. Click the Settings tab and clear the check boxes for any items that do not require history tracking in your environment. When you track history for fewer items, you will consume less network bandwidth.
4. Click OK.

Background Pagination

Background pagination can consume increased bandwidth on the network.

To disable background pagination:

1. Open the CV.VER file in Notepad. This file is located in the root Working Papers installation folder.
2. On a new line, enter 'BackgroundPagination=0'.
3. Save and close the CV.VER file. Ensure that the Save as type field is set to All Files (*.*) so that you aren't renaming CV.VER as a text file.

Auto-Compare

Auto-Compare can be used to compare documents for changes based on different stages of document preparation. In a Citrix/Terminal Server environment, this feature can consume bandwidth and CPU processing power, and should be enabled only when needed.

To disable Auto-Compare:

1. Click Engagement | History.
2. Click the Auto-Compare tab and ensure that the drop-down menu displays None.
3. Click OK.

CaseView

The CaseView Autosave option requires increased network traffic, and should be disabled if possible in these environments.

To disable Autosave:

1. In CaseView, click Tools | Options | Autosave.
2. Uncheck Enable Autosave.
3. Click OK.

Data Store

The Data Store should be set up using the Data Store Administration Tool for optimal performance.

  1. In the Settings tab of the Data Store Administration Tool, ensure that the Synchronization field is set to Only on program startup.
  2. The Track Engagement field, also in the Settings tab, controls how files are tracked by the Data Store. For these environments, either Track But Do Not Share with Firm or Disable Tracking should be selected.
Note: The Track and Share with Firm setting should not be selected unless you are using CaseWare Tracker and have a requirement to monitor the files that other users are working on, as this feature consumes increased network bandwidth.

  1. The ping frequency can be set in the CV.VER file. Pinging only updates the status icon in the user interface. Frequent pinging can reduce the responsiveness of the Data Store. The StorePingFrequency value sets the interval (in seconds) between checks to see if the Data Store is online.
To reduce the ping frequency:

1. Open the CV.VER file in Notepad. This file is located in the root Working Papers installation folder.
2. Locate the 'StorePingFrequency=xx' entry. The default value is 120 (seconds) but you can increase it to 500 or more.
3. Save and close the CV.VER file. Ensure that the Save as type field is set to All Files (*.*) so that you aren't renaming CV.VER as a text file.

Anti-Virus Software

Some anti-virus software may conflict with Working Papers and SmartSync functionality by locking required files as they are scanned. For a complete list of these files, see Anti-virus Exceptions.



Citrix and Terminal Server

This section offers some tuning advice specifically geared to Citrix/Terminal Server environments.

Change User/ Install

This command places the server session into Install mode. In this mode, any programs writing to the registry have their keys automatically mirrored to the Shadow Registry.

Change User/ Execute

This command places the server session into Execute mode. This is the default mode that applications are run in.

To populate the Citrix or Terminal Server Shadow Registry with default Working Papers settings:

1. Log onto the Citrix/Terminal server and open a command prompt.
2. Enter the following command to enable Install mode:

Change User /Install

3. Run Working Papers and set desired program defaults.
4. Exit Working Papers and revert to Execute mode with the command:

Change User /Execute

Check the Shadow Registry to ensure the appropriate Working Papers registry keys are present. As long as they are, any subsequent users logging into the Citrix/Terminal server should have settings automatically pushed to their registry branches.



SmartSync on Citrix and Terminal Server

This section offers best practices when using SmartSync in a Citrix/Terminal Server environment.

Central administration 

SmartSync enables Working Papers users to utilize far fewer network resources when sharing engagement files. SmartSync also enables remote or disconnected users to work on their own local copy of an engagement file, synchronizing their changes to the parent file when connected to the office network.

There are two typical use case scenarios for SmartSync within a Citrix/Terminal Server installation:

  1. Remote workers who do not have access to the server while offsite.
  2. Large engagements shared by multiple users where Working Papers performance is unacceptably slow.

Remote Staff and Citrix

Companies will often have remote teams of staff who work on an engagement file at a client site. These staff can use SmartSync to stay updated with each other’s changes and work more effectively as a team in the field.

Large Engagements

On large engagements, the performance reduction in the client file can be substantial. This occurs because Windows disables its network caching as soon as two or more people share a file for reading and writing. For large files, this significantly increases the amount of traffic Working Papers sends across the network.

SmartSync can be used to create separate SmartSync children on the network storage. This ensures that each user has a single user copy of the engagement file, allowing Windows network caching to remain active.

SmartSync Path Customisation on a Citrix Farm

One best practice is to use a fast network share that is available to all servers to host SmartSync for all Citrix users. This ensures users are managing SmartSync copies from the same location regardless of the server they are currently assigned. Each user should be assigned a unique path on the network share.

Paths in Working Papers always resolve to a UNC entry such as \\FileServer\path\ rather than a locally specified path such as C:\path\. There are two paths in a SmartSync environment that must be set correctly in order to store engagement files in the appropriate folder:

  1. The Client File Path should be set to the folder containing the Sync Top-Level Parent file that all SmartSync copies are made from.
  2. The SmartSync Path should be set to the folder where SmartSync file copies will be stored for each user. This should be a different network share for each user. Users who are not in a Citrix session may set a local system path.
After network shares are in place, create a script to set the default SmartSync Path for each user during login. The following script illustrates how user login can be automated in a Citrix environment:

SET SyncPath = \\File_Server\path\to\sync_copy_folder_root\ 

IF NOT EXIST %SyncPath%%UserName% MD %SyncPath%%UserName% 

REG ADD “HKCU\Software\CaseWare International\Working Papers\20xx.xx\Settings” /v SyncPath /t REG_SZ /d %SyncPath%%UserName% /f 

In the example above, File_Server\path\to\sync_copy_folder_root\ is the path to your SmartSync network store. Add these scripts to your login script.

To test that your login script performs as expected, launch a copy of Working Papers SmartSync through a Citrix session and ensure the correct SmartSync Path is set in Tools | Options | Default Paths.

Note: Some of your users who work offsite may use a local copy of Working Papers on a laptop or similar device. These users can set their SmartSync path to point to their local drive rather than a network share. If they do, they can work in their SmartSync files offline and can synchronize the files when they return to the office or connect by VPN. If they instead access Working Papers through a Citrix session, their sync copies should not be stored on their local drive.



Troubleshooting 

This section contains a list of known issues with Working Papers in Citrix environments. With each issue, we have provided a resolution that you can implement.

Issue: Working Papers and the SMB2 Network Protocol

The SMB2 network protocol from Microsoft has been known to cause file corruption with some applications, including Working Papers.

Resolution: Consult our CaseKnowledge system for the latest information on this issue by clicking here.

Issue: Customizing menus

Users have installed Working Papers and CaseView on a Citrix server at a client site and have tried to remove access to the export to RTF command in CaseView through the Tools | Customize menu, but the changes are only applied to the original terminal.

Resolution: This is a user setting, not an application setting. Menu settings are saved to the following registry key:

HKEY_CURRENT_USER\Software\CaseWare International\Working Papers\20xx.xx\CaseView\Custom Menus

Once you set up the menu on one profile, you will need to copy this key to each profile on that local machine.

Issue: Mapping to local drive from the Terminal Server

A user is unable to map to a local drive path from the terminal server.

Resolution: This functionality is not supported.

Issue: Maxed Out Processors on Server- Slow Performance

 Users attempt to work in a locked down engagement file in Working Papers and the processors on the Citrix/Terminal server are maxed out. When users exit the engagement file, the processor utilisation returns to normal.

Resolution: In locked down engagement files, two features - milestone generation and redlining - can cause issues in Citrix/Terminal Server environments. Both of these features should be disabled for locked down engagement files in Citrix/Terminal Server environments:

  1. To disable milestone generation, select Engagement | History | Settings and ensure that no milestones are being generated for any history events.
  2. To disable redlining, edit the CV.VER file by adding the line 'NoAutoSetAutoCompareLockdown=1'.

Issue: CaseView Document Does Not Print

A user attempts to print a large CaseView document and receives an error indicating that the connection to the server was broken before the entire document was transferred.

Resolution: This issue is a caused by a limitation in the Citrix universal printer driver (UPD), and is related to the size of the document. When CaseView prints to a session printer, the output is captured by the UPD and sent over the network to the client. The UPD in the client then spools the document in a temporary file. If there isn't enough space in the client to store the temporary file, the UPD aborts the printing process and closes the connection.

You have two options for solving this issue:

  1. Increase the space available for temp files in the client's local hard drive or RAM drive.
  2. Install the client's native printer driver on the Citrix server. Consult the Citrix forum for more information on this issue.

Issue: Error 50

When a Citrix/Terminal Server user creates a Sync child or goes online with a Sync child after being offline, an Error 50 message is displayed.

Resolution: This can happen in a situation where the user is storing the Sync child on the disk on their workstation while using a copy of Working Papers in a Citrix/Terminal Server session. If Working Papers is used in a Citrix/Terminal Server session then files should be stored either on the Citrix/Terminal server or on a network drive. Files on a workstation disk should only be used with a copy of Working Papers installed directly on the workstation.

Issue: CWIN32.exe Error

Working Papers users in a Citrix/Terminal Server environment may receive a CWIN32.exe error when attempting to launch the program. This prevents these users from launching Working Papers.

Resolution: This error can sometimes be resolved by clearing the Working Papers registry settings on the Citrix server. Contact CaseWare Support for more information on how to do this.

You can add the line 'DisableScanning=1' to the CV.VER file if clearing the registry settings does not resolve the issue.

Issue: Multiple Sync Copies When User Reconnects

Multiple Sync copies of an engagement file are observed after a user has been working remotely and Working Papers reconnects to the network containing the Sync Top-Level Parent.

Resolution: An extra setting is required for users who are working on Sync copies of an engagement file and who do not have continuous connectivity to the network containing the Sync Top-Level Parent.

To add this setting, open the CV.VER file in the CaseWare installation root folder and add the line 'SyncResessionCopy=0'.

Issue: CaseWare is not Responding

When SpeedScreen latency reduction manager is on, there is a possibility that CaseWare will not respond.

Resolution: Disable SpeedScreen latency reduction manager or use the SpeedScreen Latency Reduction Manager utility on the MetaFrame server to create exception entries for generic input fields. Once exception entries have been created, SpeedScreen functionality is modified or turned off on the server.

Issue: Performance Issues Working With Signed Out Files

Performance lags when opening signed out files.

Resolution: Use the command line 'nbtstat -R'. This will clear your NetBios name cache, a known fix for improving performance.

Issue: Error 30

When a user attempts to print to PDF, an Error 30 message is displayed.

Resolution: Saving or printing to PDF after a Windows upgrade may produce Error 30 - Printer not activated. The issue can occur if Working Papers was installed before the upgrade was made.

To resolve this issue, reinstall Working Papers.

For any issues that are not covered in this guide, contact our support team at support@caseware.com.au.


    • Related Articles

    • Working Remotely With CaseWare Working Papers and Audit System

      CaseWare Cloud has been designed to support remote users, where users from the office and outside the office can collaborate effectively. If you are currently using CaseWare Cloud, then you are set to work remotely. What you will need to organise is ...
    • Importing CaseWare Working Papers Engagement Files to IDEA

      To import the engagement files to IDEA: 1. Navigate to the Import option 2. Select Caseware Working papers as an option in the import assistant and click next 3. Click the browse button to select the Working Papers client file path 4. Select the ...
    • Silent installation guide for CaseWare Working Papers

      The purpose of this guide is to assist system administrators to deploy CaseWare Working Papers and its associated applications and templates silently to their end users. This guide is written on the basis that you will be deploying the software using ...
    • Working Papers 2019.00.227 Hotfix

      This hotfix applies to Working Papers 2019.00.227 and addresses the below issues: Assign mapping dialog -  If your template has more than 10,000 records in the mapping database, users may experience performance issues opening the dialog.  Customer ...
    • Link CaseWare Working Papers to Cloud

      Ensure your CaseWare Working Papers is linked to your Firm's CaseWare Cloud instance. In CaseWare Working Papers, select File/ Options Then select CaseWare Cloud and complete the Server and Label details as provided by your Cloud administrator. If ...