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.