Keywords: Ports, Global Services, Spotfire crash, mscorlib
Problem:
Spotfire analyst crashes with the following error "Global and user services could not be initialized. The application will close."
========================================
Error message: Global and user services could not be initialized. The application will close.
TargetInvocationException at mscorlib:
Exception has been thrown by the target of an invocation. (HRESULT: 80131604)
Stack Trace:
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Spotfire.Dxp.Framework.AddIn.AddInManager.LoadAddIn(AddInRegistration addInReg, List`1 availableAssemblies)
at Spotfire.Dxp.Framework.AddIn.AddInManager.<>c__DisplayClass10_0.<RunExecutionPhase>b__0(AddInRegistration addInReg)
at System.Collections.Generic.List`1.FindAll(Predicate`1 match)
at Spotfire.Dxp.Framework.AddIn.AddInManager.RunExecutionPhase(Predicate`1 executionMethod, String phaseName)
at Spotfire.Dxp.Framework.AddIn.AddInManager..ctor(AddInRegistry addInRegistryConfiguration, ModulesService modulesService, IEnumerable`1 additionalAddIns)
at Spotfire.Dxp.Main.Program.<>c__DisplayClass1_0.<StartMain>b__0()
========================================
Moreover, in Spotfire analyst logs you will see this error:
Error: [14508] Exception in HttpListener#32071293::AddPrefix - Failed to listen on prefix 'http://localhost:8000/' because it conflicts with an existing registration on the machine..
Solution:
Another program is using same port that Spotfire uses. You can check the port, by using this one-liner in powershell:
Get-Process -Id(Get-NetTCPConnection -Localport 8000).OwningProcess
Comments
0 comments
Article is closed for comments.