Products | Versions |
---|---|
Spotfire Developer | All supported versions |
Issue:
Users may encounter the following error when working with Spotfire's Software Development Kit (SDK):
InvalidOperationException at Spotfire.Dxp.Framework:Unable to add the View registration. The combination of View Base Type: 'System.Windows.Forms.Form', Model Object Type: ‘<Model>’ and View Type: ‘<PromptForm>’ has already been registered. (HRESULT: 80131509)
This error indicates a duplicate registration of the same view base type, model object type, and view type within Spotfire. This typically occurs when the same custom extension or package is loaded more than once.
Cause:
The issue arises due to duplicate deployments of a Spotfire package. This can happen if:
- The same package is installed multiple times.
- There are multiple versions of the same package causing conflicts.
- A previous version of a package wasn’t correctly uninstalled or removed.
One effective way to resolve this issue is by removing the problematic package from the Spotfire Modules folder. Here’s how to do it:
1. Ensure that Spotfire is not running before making changes to its files.
2. Go to the Modules Folder. Note that the Modules folder is typically hidden. (see Finding the Modules Folder in Spotfire Analyst Client for Package Building)
3. Look for the folder or files related to the duplicate package. This could involve recognizing the name of the package or extension causing the error. Common folder names might include parts of the package name or the developer's name.
4. Delete the identified folder(s) or file(s) that correspond to the duplicate package.
5. Restart Spotfire.
Spotfire loads its extensions and packages from the Modules directory. By removing the duplicate package, you ensure that Spotfire only loads the necessary files once.
Additional Recommendations: