Citrix Broker Service fails to initialize XML services with the error: "'Input string was not in a correct format"

Citrix Broker Service fails to initialize XML services with the error: "'Input string was not in a correct format"

book

Article ID: CTX133320

calendar_today

Updated On:

Description

On a Xendesktop Delivery controller the Citrix Broker service is shown as running but fails to initialize XML services. Registering XML to other Port (other than Port 80) does not fix the issue. Running netstat –ano on a Controller Server does not list the Registered XML port.

Event Logs and Errors on Delivery Controller:

In the Event Logs, the following events are displayed the Citrix Broker Service is started:

Log Name: Application
Source: Citrix Broker Service
Date: 5/8/2012 11:50:03 PM
Event ID: 2001
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: DDC.Domain.com
Description:
The Citrix Broker Service failed to initialize XML services. The services will attempt to initialize again in approximately 1 minute(s).
Exception 'Input string was not in a correct format.' of type 'System.FormatException'.

Log Name: Application
Source: Citrix Broker Service
Date: 5/9/2012 6:23:50 PM
Event ID: 2103
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: DDC.DOMAIN.LOCAL
Description:
An unexpected exception occurred while the Citrix Broker Service processed an XML transaction.

An incompatible client might be trying to access the XML service. Verify the compatibility of clients accessing the service. If this problem persists, reinstall the Citrix XenDesktop Controller.

Error details:

Transaction: 'RequestAddress'
Exception Type: 'Citrix.Cds.Broker.DAL.DALUnknownLaunchTokenException'
Exception Call Stack: ' at Citrix.Cds.Broker.DAL.BrokerCoreDAL.DeleteBrokeredSessionOnPrepareFailure_TXW(CdsTx _tx, String launchToken, Boolean markWorkerAsBad)
at Citrix.Cds.DAL.BaseTxProvider.RunBatch(CdsTx tx, CdsTxAction txAction, String txName, Int32 retryNumber, Exception& originalException)
at Citrix.Cds.DAL.BaseTxProvider.Execute(String txName, CdsTxOptions txOptions, CdsTxAction txAction)
at Citrix.Cds.Broker.DAL.GeneratedBrokerDAL.DeleteBrokeredSessionOnPrepareFailure(String launchToken, Boolean markWorkerAsBad)
at Citrix.Cds.Broker.SessionLauncher.PrepareSession(LaunchPrepareRequest request)
at Citrix.Cds.Broker.XmlHelper.PrepareForLaunch(LaunchPrepareRequest request)
at Citrix.Cds.Xms.Wpnbr.AddressTransaction.HandleRequest(IXmlMultiplexer multiplexer)
at Citrix.Xms.XmlSupport.XmlPerf.WrapTransaction(Type t, Action transaction)
at Citrix.Cds.Xms.Wpnbr.WpnbrServer.HandleRequest(HttpListenerRequest request, WindowsIdentity identity)'

Event log messages on WebInterface server:

Log Name: Application
Source: XenApp Services
Date: 5/9/2012 5:02:32 PM
Event ID: 30016
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: DDC.DOMAIN.LOCAL
Description:
Site path: C:\inetpub\wwwroot\Citrix\PNAgent.

The Citrix XML Service object was not found: 404 Not Found. This message was reported from the XML Service at address http://<DDCServerName>/scripts/wpnbr.dll [com.citrix.xml.NFuseProtocol.RequestAppData]. The specified Citrix XML Service could not be contacted and has been temporarily removed from the list of active services. [Unique Log ID: 3a114421]

Log Name: Application
Source: Citrix Web Interface
Date: 5/8/2012 11:13:55 PM
Event ID: 30022
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: DDC.DOMAIN.LOCAL
Description:
Site path: C:\inetpub\wwwroot\Citrix\DesktopWeb.

The Citrix XML Service or the Citrix servers might be unavailable or temporarily overloaded: 503 Service Unavailable.
This message was reported from the XML Service at address. The specified Citrix XML Service could not be contacted and has been temporarily removed from the list of active services. [Unique Log ID: 76e8001e]

Log Name: Application
Source: Citrix Web Interface
Date: 5/8/2012 11:13:55 PM
Event ID: 31003
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: DDC.DOMAIN.LOCAL
Description:
Site path: C:\inetpub\wwwroot\Citrix\DesktopWeb.

All the Citrix XML Services configured for farm Farm1 failed to respond to this XML Service transaction. [Unique Log ID: f2c795e4]

For specific information about this message, see the Web Interface documentation.

Resolution

To resolve the issue, complete the following steps on the Xendesktop Delivery Controller:

  1. Run the following command:
    LodCtr.exe /R

  2. Start perfmon service from Services Console.

  3. Restart Citrix Broker Service.
    Note: When you restart Broker Service, all the events related to the XML must stop.


Problem Cause

On the Controller server, perfmon fails to upload the basic System counters such as memory, I/O, and Process. In the CDF trace taken on Controller while restarting the Broker Service, the following error is seen:

CdsBroker:2:1:SessionLauncher: Failed to initialize performance counter (System.FormatException: Input string was not in a correct format.).

Issue/Introduction

Citrix Broker Service Unable to Execute XML Transactions - XenDesktop

Additional Information

In XenDesktop environment post XenDesktop 5.0, the Citrix XML service runs in the context of Citrix Broker Service and not as an individual service.

CTX127945 - How to Change the XML Port in XenDesktop 5.x Releases to unregister the XML port on XenDesktop 5.5.

CTX132461 - XenDesktop VDA Error: "An error occurred while making the requested connection"