TIBCO Spotfire 7.8 Package Builder fails to validate a custom tool or fails to build extension (.spk) using Spotfire.Dxp.PackageBuilder-Console.exe

TIBCO Spotfire 7.8 Package Builder fails to validate a custom tool or fails to build extension (.spk) using Spotfire.Dxp.PackageBuilder-Console.exe

book

Article ID: KB0077390

calendar_today

Updated On:

Products Versions
Spotfire Developer 7.8

Description

The Spotfire 7.8 Package Builder fails with one of the following errors when validating custom extensions,

1). When validating custom extensions developed for Web Player from the Spotfire 7.8 Package Builder, the validation fails with the following error,
Configuration is invalid for TIBCO Spotfire Installed Client due to:

Package 'HtmlToolsWebt' has unresolved assembly references:
   'Spotfire.Dxp.Web.Controls, Version=28.0.10709.3627, is referenced by HtmlToolsWeb.

2). When building a custom extension using Spotfire.Dxp.PackageBuilder-Console.exe, the build fails with the following error:
Failed to build package 'HtmlToolsWeb'.
Assembly 'C:\7.8\SpotfireDeveloper.HtmlPrintToolExampleWeb\bin\AnyCPU\Debug\SpotfireDeveloper.HtmlPrintToolExampleWeb.dll' has unresolved type references:
  Could not load file or assembly 'Spotfire.Dxp.Web.Controls, Version=28.0.10709.3627, Culture=neutral, PublicKeyToken=789861576bd64dc5' or one of its dependencies. The system cannot find the file specified.

System.InvalidOperationException: Failed to build package 'HtmlToolsWeb'.
Assembly 'C:\7.8\SpotfireDeveloper.HtmlPrintToolExampleWeb\bin\AnyCPU\Debug\SpotfireDeveloper.HtmlPrintToolExampleWeb.dll' has unresolved type references:
  Could not load file or assembly 'Spotfire.Dxp.Web.Controls, Version=28.0.10709.3627, Culture=neutral, PublicKeyToken=789861576bd64dc5' or one of its dependencies. The system cannot find the file specified.



   at Spotfire.Dxp.PackageBuilder_Console.SilentPackageBuilder.BuildPackage(String basefolderPath, String descriptionFilePath, String targetFile, String pathsToFolderWithDependentAssemblies, ArchiveType archiveType, OptionalParameters optionalParameters, CabCompressionLevel cabcompressionlevel, ZipCompressionLevel zipcompressionlevel)
   at Spotfire.Dxp.PackageBuilder_Console.Program.Main(String[] args)

Issue/Introduction

Spotfire 7.8 Package Builder fails to validate a custom tool developed for Web Player or fails to build an extension using Spotfire.Dxp.PackageBuilder-Console.exe

Resolution

Copy the Spotfire.Dxp.Web.Controls.dll from C:\Program Files (x86)\TIBCO\Spotfire\7.8.0\Modules\28.0.10709.3627 to the Spotfire binaries folder referenced by your extension(C:\SpotfireSDK\TIB_sfire_dev_7.8.0_win\SDK\Binaries)