Skip to content
  • There are no suggestions because the search field is empty.

Moving WebView pages and media to DataHub v9/v10

How do I upgrade my DataHub WebView version 8 to version 9/10?

When you upgrade to v9/10, DataHub will attempt to copy your old WebView pages to a new folder in order to make them visible in WebView v9/10. If you would like to do this manually, here is what’s involved.

Default Configuration Folder

User-generated content is now stored in the DataHub configuration folder, not the Program Files folder. The default configuration folder for DataHub is:
C:\Users\<Windows Login>\AppData\Roaming\Cogent DataHub
where <Windows Login> is the user name you used to log in to Windows. You can change the configuration folder using the -H command-line option on DataHub, or by setting it through the DataHub Service Manager application.

Personal Files

Assuming you log in to WebView as the admin user, your personal WebView v8 pages can be found here:
C:\Program Files (x86)\Cogent\Cogent DataHub\Plugin\WebServer\html\Silverlight\Pages\Users\admin
These pages need to be copied into the following location for use with WebView v9/10:
<Configuration Folder>\WebContent\Content\Organizations\Local\Users\admin\Pages
Similarly, any personal images you added to WebView v8 will now be found in:
C:\Program Files (x86)\Cogent\Cogent DataHub\Plugin\WebServer\html\Silverlight\Images
These images need to be copied into the following location for use with WebView v9/10:
<Configuration Folder>\WebContent\Content\Organizations\Local\Users\admin\Images
You must do the same for Media and Script files.

Public Files

If you have created publicly accessible pages, images, etc. then you will find the v8 files in:
C:\Program Files (x86)\Cogent\Cogent DataHub\Plugin\WebServer\html\Silverlight\Pages
These need to be copied to:
<Configuration Folder>\WebContent\Content\Organizations\Local\Pages
Images, media files, and scripts need to be similarly copied.

Custom Controls

If you have created custom WebView controls, they will only work in Silverlight. You need to recompile these controls separately for Desktop WebView. Controls and ControlAssemblies are now differentiated between Silverlight and WPF versions. For examples, if you have created a custom control DLL called MyCustomControl.dll, you would install it in DataHub v8 in:
C:\Program Files (x86)\Cogent\Cogent DataHub\Plugin\WebServer\html\Silverlight\ControlAssemblies\Company\MyCustomControl.dll
In DataHub v9/10, you can install it in one of two locations:
C:\Program Files\Cogent\Cogent DataHub\Plugin\WebServer\html\Content\Common\ControlAssemblies\Company\Silverlight\MyCustomControl.dll
Or
<Configuration Folder>\WebContent\Content\Organizations\Local\ControlAssemblies\Company\Silverlight\MyCustomControl.dll
You must similarly distinguish XAML and XML files for your custom controls if they are different between Silverlight and WPF versions.