Create ComWrapper error

We are trying to launch Spotfire Analyst from our application by creating a Spotfire ComWrapper as follow

new ComWrapper(Activator.CreateInstance(Type.GetTypeFromProgID("Spotfire.Dxp"))

and got the error

Exception: {"ClassName":"System.IO.FileNotFoundException","Message":"Retrieving the COM class factory for component with CLSID {8B9A5DE9-DEB8-11DB-97F1-0011D8B1A5F4} failed due to the following error: 8007007b The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B).","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)\r\n   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, Boolean nonPublic)\r\n   at System.Activator.CreateInstance(Type type)\r\n   at IHS.Kingdom.SpotfireAutomation.Wrappers.SpotfireApplicationWrapper..ctor() in C:\\TFSWorkspaces\\Kingdom\\Main\\Source\\Libraries\\SpotfireAutomation\\IHS.Kingdom.SpotfireAutomation\\Wrappers\\SpotfireApplication.cs:line 10\r\n   at IHS.Kingdom.SpotfireAutomation.Models.SpotfireAutomationInternal.StartSpotfire(String commandLine) in C:\\TFSWorkspaces\\Kingdom\\Main\\Source\\Libraries\\SpotfireAutomation\\IHS.Kingdom.SpotfireAutomation\\Models\\SpotfireAutomation.cs:line 67","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nCreateInstance\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.RuntimeTypeHandle\nSystem.Object CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)","HResult":-2147024773,"Source":"mscorlib","WatsonBuckets":null,"FileNotFound_FileName":null,"FileNotFound_FusionLog":null}.

 

We already check Spotfire Analyst 7.12 working correctly

Registry value at Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8b9a5de9-deb8-11db-97f1-0011d8b1a5f4}\LocalServer32 is correctly pointed to the right exe

This only happens on 1 of our test machines, all other machines dont have the issue

How can we fix this?

Thanks

(2) Answers

Login