Virtual Delivery Agent (VDA) removal fails with Error: 'The port number must be between 0 and 65535'

Virtual Delivery Agent (VDA) removal fails with Error: 'The port number must be between 0 and 65535'

book

Article ID: CTX235258

calendar_today

Updated On:

Description

Under certain conditions, Virtual Delivery Agent (VDA) removal may fail with the error: 'The port number must be between 0 and 65535'

Error Id: XDMI:C938DAFC
Exception:
    Citrix.MetaInstaller.Exceptions.MetaInstallerException The port number must be between 0 and 65535.
       at Citrix.MetaInstaller.UI.Pages.Vda.ViewModels.PortPageViewModel.ValidatePort(String value)
       at Citrix.MetaInstaller.UI.Pages.Vda.ViewModels.PortPageViewModel.set_Port(String value)
       at Citrix.MetaInstaller.UI.Pages.Vda.ViewModels.PortPageViewModel..ctor(MainWindowViewModel mainWindowViewModel, VdaDataModel dataModel)
       at Citrix.MetaInstaller.UI.Pages.Vda.ViewModels.VdaMainWindowViewModel.CreatePages()
       at Citrix.MetaInstaller.WizardFramework.MainWindowViewModel.Initialize()
       at Citrix.MetaInstaller.UI.Pages.Vda.ViewModels.VdaMainWindowViewModel.Initialize()
       at Citrix.MetaInstaller.MetaInstallerWpfApplication.OnStartup(StartupEventArgs e)


Error

Resolution

To resolve the issue, follow the steps below:

1.) Launch Registry Editor
2.) Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\VirtualDesktopAgent\InstallData
3.) Create a new REG_SZ called WCF_PORT and give it a value of 80

Solution

Problem Cause

This issue can occur if the registry entry WCF_PORT is missing from the server.

Additional Information

To learn more about Windows Communication Foundation (WCF), see the following Microsoft article:
What Is Windows Communication Foundation