+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Problem after upgrade

Problem after upgrade

3 posts, 0 answered
  1. Sam
    Sam avatar
    2 posts
    Registered:
    17 Apr 2011
    04 May
    Link to this post

    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", "2.0.0.0")]
        [System.Web.WebPages.PageVirtualPathAttribute("~/MVC/Views/Default.cshtml")]
        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?

     

  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    23 Sep 2016
    09 May
    Link to this post
    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 3.0.0.0 like so:

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

    3. Make sure that the the following assemblies referenced in the project are version 3.0.0.0 (right click on the reference -> Properties):
    -System.Web.Razor
    -System.Web.WebPages
    -System.Web.WebPages.Deployment
    -System.Web.WebPages.Razor

    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.

    Regards,
    Velizar Bishurov
    Telerik
     
    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
     
  3. Sam
    Sam avatar
    2 posts
    Registered:
    17 Apr 2011
    09 May
    Link to this post

    Thanks Velizar, 

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

3 posts, 0 answered