Product: TIBCO Spotfire®
Initilization Error when launching Spotfire with High Content Profiler's ImagesAddIn.
If the necessary Visual C++ redistributable packages have not been installed this will typically result in an error of the form:
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)
TypeInitializationException at PerkinElmer.Images:
The type initializer for 'PerkinElmer.Images.ImagesAddIn' threw an exception. (HRESULT: 8013153)
Win32Exception at System:
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (HRESULT: 80004005)
(please note some parts of the above error have been removed for berefity)
Here is the list of all required C++ redistributables for HCP as per the 2.0.0 installation guide:
- Visual C++ 2005 redistributable package (x86)
- Visual C++ 2008 redistributable package (x86)
- Visual C++ 2010 redistributable package (x64)**
To check what has been installed search for the 'Add or remove programs' in the task bar.
There are various 2005 and 2008 versions online and this can be source of confusion.
To check specifically which missing version is precipitating the error:
- Search for the 'Event Viewer' in the task bar.
- In Event Viewer go to Windows Logs > Application and here you should see a corresponding Error in the 'Level' column, check the 'General' tab for the specifics. For example:
Activation context generation failed for "C:\Users\Imaging_Support\AppData\Local\TIBCO\Spotfire\7.11.1\Modules\Image Discovery_22.214.171.1241\ImageService\PerkinElmer.ImagesServiceHost.exe". Dependent Assembly Microsoft.VC80.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762" could not be found. Please use sxstrace.exe for detailed diagnosis.
Note the details of the missing dependency in this case is type="win32", version="8.0.50727.762". This is Visual C++ 2005 redistributable package (x86). Here is a table to show typical Event Viewer missing version, a URL to downloading the missing and specifically which version that installs.
|Event Viewer, missing version||Visual C++ redistributable package||URL to download||Version installs|
If Lead Discovery is also installed, you may also enounter the following dialog on launching Spotfire if additional 2017 packages are required:
In which case please follow its lead and install the 2017 C++ redistributables automatically as required.
** At point of writing I cannot recreate any error if 2010 version is lacking on Windows 10 Professional.