Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
Application Profiler fails to open files with System.IO.FileNotFoundException: Could not load file or assembly error
Solution:
When using the Application Profiler, the test will fail to open the report with an error similar to the following:
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Spotfire.Dxp.Internal.Utilities.ApplicationSetupException: Failed to initialize extension. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Spotfire.Dxp.Data.Adapters.SparkSql, Version=23.0.10012.4894, Culture=neutral, PublicKeyToken=789861576bd64dc5' or one of its dependencies. The system cannot find the file specified. at Spotfire.Dxp.Forms.Data.Adapters.SparkSql.SparkSqlAddIn.RegisterViews(ViewRegistrar registrar) at Spotfire.Dxp.Application.Extension.AddIn.Spotfire.Dxp.Framework.AddIn.IAddIn.RegisterViews(IServiceProvider serviceProvider) at Spotfire.Dxp.Framework.AddIn.AddInManager.Spotfire.Dxp.Framework.Services.IServiceFactory.UseGlobalServices(GlobalServiceRegistry serviceProvider) at Spotfire.Dxp.Framework.Services.GlobalServiceRegistry.GlobalServicesCreated(IServiceFactory serviceFactory, AddInManager addinManager) --- End of inner exception stack trace --- at Spotfire.Dxp.Framework.Services.GlobalServiceRegistry.GlobalServicesCreated(IServiceFactory serviceFactory, AddInManager addinManager) at Spotfire.Dxp.ApplicationProfiler.ApplicationProfilerTestRunner.SetUp() at Spotfire.Dxp.ApplicationProfiler.ApplicationProfilerTestRunner..ctor(String[] args)
Any particular module might be referenced in the error, not just the 'Spotfire.Dxp.Data.Adapters.SparkSql, Version=23.0.10012.4894, Culture=neutral, PublicKeyToken=789861576bd64dc5' module seen in this example. The general error is:
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Spotfire.Dxp.Internal.Utilities.ApplicationSetupException: Failed to initialize extension. ---> System.IO.FileNotFoundException: Could not load file or assembly '<module>, Version=<version>, Culture=neutral, PublicKeyToken=<token>' or one of its dependencies. The system cannot find the file specified.
This would most often be seen in the Application Profiler analysis seen when clicking 'Show Analysis' button, in the 'Version Comparison' tab, in the 'Exception During Test' columns. This error occurs when:
- The Analyst client contains a module (seen in the \Modules\ folder) which is not present on the server in the deployment area to which the client connects.
- When starting the Analyst client, when prompted "An update for TIBCO Spotfire is available... When do you wish to install the update?" you select "Later" (meaning the client modules are not synced with the server's deployment area)
- The Application Profiler is opened via Tools > Diagnostics > Application Profiler and attempts to open a file.
To resolve the issue:
- Launch the Analyst client, log in to the TIBCO Spotfire Server, and when prompted to update the client select "Update Now". Then the Application Profiler can be successfully run.
Comments
0 comments
Article is closed for comments.