Reflection FTP Client crashes in RNSocks.DLL when clicking Proxy Tab with App-V 5.x

  • 7022861
  • 17-Apr-2018
  • 30-Oct-2020

Environment

Reflection Desktop (including Pro, for X, for IBM, or for UNIX and OpenVMS) 16.0 or 16.1
Microsoft Windows 7
Microsoft Windows 10
Microsoft Application Virtualization 5.1 or 5.2

Situation

Reflection FTP Client (RFTPC.EXE) will crash in RNSocks.DLL when clicking on the Proxy Tab under the Security settings when running under Windows 7 or Windows 10 with App-V 5.x.  The FTP Client will not crash when installed with a Typical/Default installation on a real physical machine or a Virtual Microsoft Windows PC.

Here is the crash signature:
Faulting application name: rftpc.exe, version: 20.0.551.0, time stamp: 0x5ab33fa0
Faulting module name: RNSOCKS.DLL, version: 20.0.551.0, time stamp: 0x5ab33c4f
Exception code: 0xc0000409
Fault offset: 0x000117f9
Faulting process id: 0x1398
Faulting application start time: 0x01d3cb9cba9cf296
Faulting application path: C:\Program Files (x86)\Micro Focus\Reflection\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\rftpc.exe
Faulting module path: C:\Program Files (x86)\Micro
Focus\Reflection\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\RNSOCKS.DLL
Report Id: 2a66542f-a9f6-4afb-b4a1-2065ad03e0f0

Resolution

Upgrade to Reflection Desktop 16.2 or higher to resolve this issue.

Workaround Steps:
Make sure the path to the Reflection FTP files is less than 128 characters.  With a typical install of the Reflection FTP client, the path will be something like "C:\Program Files (x86)\Micro Focus\Reflection", but with Microsoft App-V the path will typically be longer than 128 characters, which will cause this problem.

Cause

The problem is caused by the long (greater than 128 character) path name to the Reflection FTP DLL files and the install location of Reflection FTP Client.  Note the long path in the crash signature.  This is the type of long path which is created in an App-V environment as Microsoft App-V will typically install to a long path name greater than 128 characters which will cause problems with the Reflection FTP Client.

Additional Information

Steps to Duplicate:
There are two different sets of instructions which can be used to duplicate this issue:
        1. One on a stand-alone Windows 7 or Windows 10 machine
        2. Second with two PCs running Windows 10 and Microsoft App-V 5.2


Set #1:
1. Create a Windows 10 x64 machine with all the latest Microsoft Security and other updates applied.

2. Install Reflection with the installation folder as:
C:\Program Files(x86)\Micro Focus\Reflection\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789\0123456789

3. From the Windows Start Menu, launch the installed Reflection FTP Client application.

4. The Reflection FTP Client will load.

5. Click on the "New..." button.

6. Enter any Host name then click Next.

7. Click on the "Security..." button.

8. Click on the "Proxy" tab.

9. A crash will occur that says "Reflection FTP Client has stopped working" 
   Check the Windows Event Log / Application Log for the details of the error


Set #2:
Windows 10 x64 PC with latest Microsoft App-V Sequencer:
1. Create a Windows 10 x64 machine with all the latest Microsoft Security and other updates applied
   (Use Windows 10 (Build 1709 - Enterprise Edition) for these steps)

2. Install the latest Microsoft App-V version Sequencer software.
   (a copy can be obtained from a MSDN subscription

3. Launch Microsoft App-V from the "Microsoft Application Virtualization Sequencer"

4. Click on “Create a New Virtual Application Packageâ€.

5. From the Packaging Method dialog click on “Create Package (default)â€. Click Next.

6. On the Prepare Computer dialog, if there are issues, resolve them or Click Next.

7. From the Type of Application dialog select “Standard Application (default). Click Next.

8. From the Select Installer dialog browser to the location of the SETUP.EXE for the FTP client
   or the Reflection Product. Click Next.

9. From the Package Name dialog, provide the “Virtual Application Package Nameâ€
   (can be any name desired). Click Next.

10. The Microsoft App-V v5.2 Sequencer will now launch the SETUP.EXE name provided in step #8.

11. When the Reflection product installation starts, just go through installation wizard
     (using defaults) and install the application.

12. When the Reflection installation is complete, the Installation dialog will appear
      (in the Microsoft App-V Sequencer), check (enable) the “I am finished installing†check box.

13. From the Configure Software dialog, should see the listing of the Reflection icons.
      Highlight Reflection FTP and click Run Selected.

14. The Reflection FTP Client will load.

15. Click on the "New..." button

16. Enter any Host name then click Next.

17. Click on the "Security..." button.

18. Click on the "Proxy" tab and wait for the next dialog to appear to verify that it is working.

19. Click OK

20. Click on Next

21. Click on Finish

22. Cancel out of the connection to the Host system.

23. Close the Reflection FTP Client by clicking on the X in the upper right corner.

24. Installation Report dialog will appear.  Click Next.

25. Create Package dialog will appear. Create a Standard package.

26. Distribute the package to the Microsoft App-V Client.
     Can be done a via Microsoft App-V Server or manually installed on the Microsoft App-V Client via the MSI file.


Windows 10 x64 PC with latest Microsoft App-V Client:
1. Create a Windows 10 x64 machine with all the latest Microsoft Security and other updates applied
    (Must use an Enterprise edition of Windows 10 for these steps)

2. Enable the Microsoft App-V Client software.
    The App-V client comes with Windows 10 Enterprise edition, but it must be enabled to work:
 
        a) Load Windows PowerShell with Run as Administrator

        b) Type "Enable-Appv" in the PowerShell window and press ENTER.

        c) Reboot the PC

        d) Verify the App-V client is enabled by typing "Get-AppvStatus" and press ENTER

3. Install the created App-V package of the Reflection FTP client from the Sequencer PC via
    the Microsoft App-V version 5.1 Server or manually install the MSI file.

        a) To manually install the App-V Package, copy the folder created on the Microsoft App-V Sequencer,
             and typically found on the Windows Desktop to the Microsoft App-V Client PC’s Desktop

        b) Open the folder and click on the MSI file to run the installer

        c) Acknowledge any prompts and let the install finish

4. From the Windows Start Menu, launch the installed Reflection FTP Client application

5. The Reflection FTP Client will load.

6. Click on the "New..." button.

7. Enter any Host name then click Next.

8. Click on the "Security..." button.

9. Click on the "Proxy" tab.

10. A crash will occur that says "Reflection FTP Client has stopped working"
     Check the Windows Event Log / Application Log for the details of the error