Jump to content

Create ComWrapper error


Huy Nguyen 2

Recommended Posts

We are trying to launch Spotfire Analyst from our application by creatinga 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)rn at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)rn at System.Activator.CreateInstance(Type type, Boolean nonPublic)rn at System.Activator.CreateInstance(Type type)rn at IHS.Kingdom.SpotfireAutomation.Wrappers.SpotfireApplicationWrapper..ctor() in C:\TFSWorkspaces\Kingdom\Main\Source\Libraries\SpotfireAutomation\IHS.Kingdom.SpotfireAutomation\Wrappers\SpotfireApplication.cs:line 10rn 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":"8nCreateInstancenmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089nSystem.RuntimeTypeHandlenSystem.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 atComputerHKEY_LOCAL_MACHINESOFTWAREClassesCLSID{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

Link to comment
Share on other sites

Hello,

The error0x8007007Boccurs when the system is set to store restore points to a wrong path or location.

In your case looks like its not able to find the "Spotfire.Dxp" application.

 

Reference -https://answers.microsoft.com/en-us/windows/forum/all/error-the-filename-directory-name-or-volume-label/bfac0203-a3ea-4cfc-a44b-039324f43378

 

Since the issue is specific to a machine you can re-install the Analyst client and see if that makes any difference.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...