Feedback
Did this article resolve your question/issue?

   

Article

Telerik.Sitefinity.Pages.Model.ControlPresentation type not found in the system TypeRegistry error after upgrade

« Go Back

Information

 
TitleTelerik.Sitefinity.Pages.Model.ControlPresentation type not found in the system TypeRegistry error after upgrade
URL NameTelerik-Sitefinity-Pages-Model-ControlPresentation-type-not-found-in-the-system-TypeRegistry-error-after-upgrade-or-after-installing-Site-Sync-module
Article Number000186178
EnvironmentProduct: Sitefinity
Version: 7.x, 8.x, 9.x, 10.x, 11.x, 12.x, 13.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description

When running the Sitefinity project in the browser after an upgrade an error message is thrown:

Type not found in the system TypeRegistry. Register it there first.
Type: Telerik.Sitefinity.Pages.Model.ControlPresentation
Parameter name: type

The issue also may appear after installing the Site Sync module if the module has been disabled before the upgrade.

 After upgrade there is an error and the site is not accessible
Steps to Reproduce
Clarifying Information
Error MessageType : System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral,
Message : Type not found in the system TypeRegistry. Register it there first.
Type: Telerik.Sitefinity.Pages.Model.ControlPresentation
Parameter name: type
Source : Telerik.Sitefinity.SiteSync
ParamName : type
Data : System.Collections.ListDictionaryInternal
TargetSite : Void RegisterType(System.String, Telerik.Sitefinity.SiteSync.SiteSyncTypeKind, System.Collections.Generic.IEnumerable`1[System.String], Telerik.Sitefinity.SiteSync.SiteSyncTypeCategory)
HResult : -2147024809
Stack Trace :    at Telerik.Sitefinity.SiteSync.SyncingManager.RegisterType(String type, SiteSyncTypeKind typeKind, IEnumerable`1 dependencyTypes, SiteSyncTypeCategory category)
   at Telerik.Sitefinity.SiteSync.SyncingManager.Telerik.Sitefinity.SiteSync.ISiteSyncTypeRegistry.Register(String type, IEnumerable`1 dependencyTypes)
   at Telerik.Sitefinity.SiteSync.SyncingManager..ctor()
   at Telerik.Sitefinity.SiteSync.SiteSyncModule.RegisterTypes(IUnityContainer container)
   at Telerik.Sitefinity.SiteSync.SiteSyncModule.SystemManager_ModulesInitialized(Object sender, SystemInitializationEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Telerik.Sitefinity.Services.SystemManager.OnModulesInitialized(InstallContext installContext)
   at Telerik.Sitefinity.Services.SystemManager.Initialize()
   at Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes()
   at Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap()
   at Telerik.Sitefinity.Services.SystemManager.RestartApplication(OperationReason restartReason, SystemRestartFlags flags, Boolean sendRestartApplicationSystemMessage)
   at Telerik.Sitefinity.Services.Web.Services.ModulesService.ExecuteStaticModuleOperation(ModuleViewModel module, ModuleOperation operation)
   at Telerik.Sitefinity.Services.Web.Services.ModulesService.Execute(ModuleViewModel module, ModuleOperation operation)

---- OR ----

Message: System.ArgumentException: Type not found in the system TypeRegistry. Register it there first.
Type: Telerik.Sitefinity.Pages.Model.ControlPresentation
Parameter name: type
at Telerik.Sitefinity.SiteSync.SyncingManager.Telerik.Sitefinity.SiteSync.ISiteSyncTypeRegistry.Register(String type, SiteSyncTypeKind typeKind, IEnumerable`1 dependencyTypes, SiteSyncTypeCategory category)
at Telerik.Sitefinity.SiteSync.SyncingManager.Telerik.Sitefinity.SiteSync.ISiteSyncTypeRegistry.Register(String type, IEnumerable`1 dependencyTypes)
at Telerik.Sitefinity.SiteSync.SyncingManager..ctor()
at Telerik.Sitefinity.SiteSync.SiteSyncModule.RegisterTypes(IUnityContainer container)
at Telerik.Sitefinity.SiteSync.SiteSyncModule.SystemManager_ModulesInitialized(Object sender, SystemInitializationEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Telerik.Sitefinity.Services.SystemManager.OnModulesInitialized(InstallContext installContext)
at Telerik.Sitefinity.Services.SystemManager.Initialize()
at Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes()
at Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap()
at Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap()
at Telerik.Sitefinity.Web.SitefinityHttpModule.<Init>b__2(Object ctx)
at System.Threading.Tasks.Task.Execute()
Defect/Enhancement Number
Cause
Cause 1. Unsuccessful upgrade of the widget templates module.

Cause 2. Simultaneous upgrade of more than 1 server in a Load Balanced scenario.
Resolution

Resolution for Cause 1. In order to fix this re-install the ControlTemplates.

    For Sitefinity versions 9.1 and above perform the below steps:

    1. Open the sf_module_vrsn table in the database
    2. Execute the below SQL script on a backup of your database:
    UPDATE [sf_module_vrsn]
    SET version = NULL , error_msg = NULL, previous_version = null
    WHERE module_name = 'ControlTemplates'
    3. Restart the application

    If this doesn`t resolve the issue then use the below SQL Query to reinstall all Sitefinity modules that have encountered an error.
    UPDATE [sf_module_vrsn]
    SET version = NULL , error_msg = NULL, previous_version = null
    WHERE error_msg <> ''
    After executing the query restart the application.

    For Sitefinity versions 9.0 and below perform the below steps:

    1. Open the ~/App_Data/Sitefinity/Configuration/SystemConfig.config file.
      (If the configurations are stored in the database open the sf_xml_config_items table in the database and find the content of the SystemConfig.config file and make the below changes there)
    2. Find the entry for ControlTemplates
    3. Delete its version attribute so that it looks like below:
      <add name="ControlTemplates" />
    4. Save the SystemConfig.config file.
      (If the configurations are stored in the database, make sure to update the system config there.)
    5. Restart the application
    Resolution for Cause 2. Revert the corrupted database from a backup and upgrade the servers one by one. For Sitefinity 8.2 and above follow Sitefinity Blogs, Improvements in Upgrading Sitefinity in Load Balancing Environment https://www.progress.com/blogs/improvements-in-upgrading-sitefinity-in-load-balancing-environment for information how to upgrade without downtime.
    Workaround
    Notes
    References to other documentation:
    Sitefinity Blogs, 
    Improvements in Upgrading Sitefinity in Load Balancing Environment https://www.progress.com/blogs/improvements-in-upgrading-sitefinity-in-load-balancing-environment
    Last Modified Date11/17/2020 4:26 PM
    Attachment 
    Files
    Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

    Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.