Problem after upgrade - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Problem after upgrade

  • Problem after upgrade
  • Could not load type 'Telerik.Sitefinity.Mvc.ControllerToolboxItemAttribute' from assembly 'Telerik.Sitefinity, Version=9.0.6010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563'.


    Problem Code:


        [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "")]
        public partial class _MVC_Views_Default_cshtml : System.Web.Mvc.WebViewPage<SitefinityWebApp.Mvc.Models.MapModel>
            public _MVC_Views_Default_cshtml()
            public override void Execute()




    Any ideas?


  • Hi,

    Here are a few things to check:

    1. Make sure that the SitefinityWebApp project's .NET Target framework is 4.5.
    2. In the web.config file check that the section group for "system.web.webPages.razor" has the Version attribute correctly specified as like so:

    <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
      <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />

    3. Make sure that the the following assemblies referenced in the project are version (right click on the reference -> Properties):

    If not delete the references and the assemblies from the bin folder, copy the correct ones from the _EmptyProject's bin folder and reference them. Build the project afterwards.

    4. Make sure there is no Telerik.Sitefinity.UI.Mvc assembly in the project's bin folder and the project references.

    Velizar Bishurov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
  • Thanks Velizar, 

    I'll try these and report back on this thread.