Hello,
I tried upgrading one of our UFT 11.53 installations from 11.53 to 12.01, and I now get the following error message when I attempt to load any of my tests:
Exception of type: System.InvalidCastException. Source: System.Windows.Forms. Occured in Void RealizeStyles() method
Exception message is: Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘IOleObject’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{00000112-0000-0000-C000-000000000046}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Exception trace is: at System.Windows.Forms.AxHost.RealizeStyles()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at MicTableControl.MicTableControl.InitializeComponent()
at MicTableControl.MicTableControl..ctor()
at MicTableControl.MicTableControlFactory.GetNewControl()
at HP.QTP.Backend.Entities.DataTable.DataTableBook.InitUiControlBook()
at HP.QTP.Backend.Entities.DataTable.DataTableBookFactory.CreateUiBookWithoutEvents()
at HP.QTP.Backend.Entities.DataTable.ReplayDataTable..ctor()
at HP.QTP.Backend.Entities.DataTable.ReplayDataTable.get_Instance()
at HP.QTP.Backend.Entities.TestDocumentBase`1.get_ReplayDataTable()
at HP.QTP.Backend.Features.DataTableFeature.ReplayDataTableFeature.InitializeFeature(DataTableContextProperties contextProperties)
at HP.QTP.Backend.Features.DataTableFeature.ReplayDataTableFeature..ctor(DataTableContextProperties contextProperties)
at HP.QTP.Backend.Features.FeaturesFactory.TestBaseFeatureFactory.CreateReplayDataTableFeature(DataTableContextProperties context)
at HP.QTP.Backend.Entities.TestDocumentBase`1.RegisterDataTableFeatures()
at HP.QTP.Backend.Entities.TestDocumentBase`1.RegisterFeatures(IRelationsManager3 relationsManager)
at HP.QTP.Backend.Entities.TestDocument.RegisterFeatures(IRelationsManager3 relationsManager)
at HP.QTP.Backend.Builders.ItemBuilders.TestBuilderBase`2.CreateTestDocument(TInfo testInfo, ITestInitiator testInitiator, IRelationsManager3 relationsManager)
at HP.QTP.Backend.Builders.ItemBuilders.TestBuilderBase`2.Load(String path, IEntity owner, Boolean openInReadOnlyMode)
at HP.QTP.Backend.Builders.ItemBuilders.BuilderBase`2.HP.QTP.Backend.Common.IBuilder.Load(String path, IEntity owner, Boolean openInReadOnlyMode)
at HP.QTP.Backend.EntitiesFacade.Managers.EntitiesManagerBase.InternalLoad(String path, IEntity owner, Boolean openInReadOnlyMode, String baselineId, Boolean forceUpdate)
at HP.QTP.Backend.EntitiesFacade.Managers.EntitiesManagerBase.Load(String rawPath, IEntity owner, Boolean openInReadOnlyMode, Boolean forceUpdateCache, String baselineId)
at HP.QTP.Backend.EntitiesFacade.Managers.EntitiesManagerBase.Load(String rawPath, IEntity owner, Boolean openInReadOnlyMode, String baselineId)
at HP.QTP.BackEndServices.BackEndManager.<>c__DisplayClass6.b__3(Object dummyLoadInfo)
at HP.UFT.Common.Cache`2.GetOrCreate[TCreationInfo](TIdentifier identifier, Func`2 objectGenerator, TCreationInfo creationInfo)
at HP.QTP.BackEndServices.BackEndManager.OpenTest(String testPath, Boolean openInReadOnlyMode, String baselineId)
at HP.QTP.ProjectSystem.QtpProjectService.LoadTestProject(LocationInfo locationInfo)
at HP.UFT.Common.Cache`2.GetOrCreate[TCreationInfo](TIdentifier identifier, Func`2 objectGenerator, TCreationInfo creationInfo)
at HP.QTP.ProjectSystem.QtpProjectService.LoadProject(ProjectLoadInformation projectLoadInfo)
SharpDevelop Version : 4.1.3.0-00000000
.NET Version : 4.0.3