Problem after upgrade

Posted by Community Admin on 04-Aug-2018 15:16

Problem after upgrade

All Replies

Posted by Community Admin on 04-May-2016 00:00

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?

 

Posted by Community Admin on 09-May-2016 00:00

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
 

Posted by Community Admin on 09-May-2016 00:00

Thanks Velizar, 

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

This thread is closed