".NET Framework Initialization Error" on Receiver

".NET Framework Initialization Error" on Receiver

book

Article ID: CTX129809

calendar_today

Updated On:

Description

This article is intended for Citrix administrators and technical teams only.

Non-admin users must contact their company’s Help Desk/IT support team and can refer to CTX297149 for more information.

If a computer has .NET Framework version 4 installed and there are no older versions of the .NET Framework, .NET Framework initialization error messages are displayed in the following scenarios:

  • Scenario 1: When you start Citrix Receiver earlier than version 3.0 from the Start menu, the following error message is displayed:

    "ControlPanel.exe - .NET Framework Initialization Error
    Unable to find a version of the runtime to run this application."

    Note: Citrix Receiver earlier than version 3.0 does not start automatically during installation.

  • Scenario 2: Citrix Receiver Updater 3.0 for Windows is installed without errors. The first time you select the Preferences option, the Citrix Receiver - Preference dialog box is not displayed. The .NET initialization error message is displayed. This message is not displayed during subsequent attempts.
    Note: Occasionally, the Updater.exe - .NET Framework Initialization Error message is displayed.

  • Scenario 3: When you start the Citrix Receiver Settings applet from the Windows Control panel, the .NET Framework initialization error message is displayed.

Occasionally, application error messages are displayed in addition to the .NET Framework initialization error messages.

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Resolution

Create a policy file for each executable to enable the option for programs to use .NET Framework version 4.

To create a policy file, complete the following procedure:

  1. Find all the copies of the following Citrix executable files on the computer:

    • Updater.exe

    • MerchServerConnector.exe

    • ControlPanel.exe Note: There might be multiple copies of some of these files.

  2. Create a configuration file with the following content, using a text editor (for example, Notepad):

    <?xml version="1.0"?>
    <configuration>
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
    </startup>
    </configuration>

    Ensure that you create a copy of the preceding file for every executable file.

  3. Save the files in the folder where the executable files are saved.

  4. Name the file with the same name as the executable file and specify config as the extension of the file.
    Following is a sample of the file name:
    Updater.exe.config is the configuration file for the Updater.exe file.

  5. On computers with Citrix Receiver Updater 3.0 or later, use Menu on the Taskbar icon to close the Receiver application.

  6. Restart Citrix Receiver from the Start menu.


Problem Cause

In .NET 4 Framework, call forwarding of the .NET Framework is not available because of the introduction of in-process side-by-side hosting. Therefore, programs created to work with earlier versions of the .NET Framework do not use .NET version 4 and later, unless you enable the relevant option to facilitate it to work with the earlier versions.
Computers on which only .NET 4 Framework is installed and earlier versions of the .NET Framework are not installed, these programs fail to run.

Issue/Introduction

This article describes a fix for the problems encountered by Citrix Receiver for Windows when .Net Framework 4 is installed and earlier versions of the .NET Framework are not installed.