Article

Telerik.Sitefinity.Pages.Model.ControlPresentation type not found in the system TypeRegistry error after upgrade or after installing Site Sync module

« Go Back

Information

 
Article Number000071354
EnvironmentProduct: Sitefinity
Version: 7.x, 8.0, 8.1, 10.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:

Type : System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
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
Help link :
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)
Another variation of the exception
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()


 
Steps to Reproduce
Clarifying Information
Error MessageType not found in the system TypeRegistry. Register it there first. Type: Telerik.Sitefinity.Pages.Model.ControlPresentation Parameter name: type
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
    Attachment 
    Last Modified Date10/1/2018 6:17 AM


    Feedback
     
    Did this article resolve your question/issue?

       

    Your feedback is appreciated.

    Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

    Characters Remaining: 1025