Get license configuration error when launching UFT

  • KM02455765
  • 29-Jun-2016
  • 12-Jul-2016

Summary

Get license configuration error when launching UFT.

Error

Error message from UFT log:

yyyy-mm-dd hh:mm:ss HP.UFT.License [   5] ERROR Cannot create Autopass API instance
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at HP.UFT.License.Autopass.Settings.AutopassSettings.LoadDocument(String fileName, String defaultFileName)
   at HP.UFT.License.Autopass.Settings.AutopassSettings.LoadLicensingSettings()
   at HP.UFT.License.Autopass.Settings.AutopassSettings..ctor()
   at HP.UFT.License.Autopass.AutopassConfigurationModule.<Configure>b__1()
   at HP.UFT.ServicesRegistry.WindsorWrapperContainer.<>c__DisplayClass4`1.<GenFactoryMethod>b__2()
   at Castle.MicroKernel.Registration.ComponentRegistration`1.<>c__DisplayClassf`1.<UsingFactoryMethod>b__e(IKernel k, ComponentModel m, CreationContext c)
   at Castle.MicroKernel.ComponentActivator.FactoryMethodActivator`1.Instantiate(CreationContext context)
   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context)
   at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context)
   at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context)
   at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired)
   at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired)
   at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context)
   at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments)
   at Castle.MicroKernel.DefaultKernel.Resolve(Type service)
   at Castle.Windsor.WindsorContainer.Resolve[T]()
   at HP.UFT.ServicesRegistry.WindsorWrapperContainer.Resolve[TService]()
   at HP.UFT.License.Autopass.AutopassApi.ReadSettings()
   at HP.UFT.License.Autopass.AutopassFactory.CreateAutopassApiInstance()
   at HP.UFT.License.Autopass.AutopassApiCreator.StartCreatingAutopassApi()

Cause

The license configuation files in local drive are broken.

Fix

1. On UFT machine, navigate to C:\ProgramData\Hewlett-Packard\UFT\.

2. Delete the folders "Common" and "License".

3. Restart UFT, and set the license server address.

4. Issue should be resolved.