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

Forums / Developing with Sitefinity / Pure MVC / Root Template change via Power Tools results in Exception

Pure MVC / Root Template change via Power Tools results in Exception

2 posts, 0 answered
  1. Ruth
    Ruth avatar
    25 posts
    Registered:
    17 May 2012
    03 Sep 2015
    Link to this post

    Hi 

    Using a fresh install of Sitefinity 8.1.5810.0 I've attempted to change the default template as per the instructions here: 

    https://github.com/Sitefinity/PowerTools/wiki/Root-Templates

    This results in the following:

     

     

    Server Error in '/' Application.

    Could not load type 'Telerik.Sitefinity.Mvc.Rendering.PureMvcPageResolver' from assembly 'Telerik.Sitefinity, Version=8.1.5810.0, Culture=neutral, PublicKeyToken=b28c218413bdf563'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.TypeLoadException: Could not load type 'Telerik.Sitefinity.Mvc.Rendering.PureMvcPageResolver' from assembly 'Telerik.Sitefinity, Version=8.1.5810.0, Culture=neutral, PublicKeyToken=b28c218413bdf563'.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace: 

    [TypeLoadException: Could not load type 'Telerik.Sitefinity.Mvc.Rendering.PureMvcPageResolver' from assembly 'Telerik.Sitefinity, Version=8.1.5810.0, Culture=neutral, PublicKeyToken=b28c218413bdf563'.] Sitefinity.PowerTools.RootTemplates.RootTemplatesManager.Bootstrapper_Initialized(Object sender, ExecutedEventArgs e) +0 System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0 Telerik.Sitefinity.Abstractions.Bootstrapper.OnInitialized(Object sender, ExecutedEventArgs args) +22 Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes() +4154 Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +510 Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +274 System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +418 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296 [HttpException (0x80004005): Could not load type 'Telerik.Sitefinity.Mvc.Rendering.PureMvcPageResolver' from assembly 'Telerik.Sitefinity, Version=8.1.5810.0, Culture=neutral, PublicKeyToken=b28c218413bdf563'.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9957060 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

     

    Does anyone know how I might resolve this?

     Thanks in advance

  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    23 Sep 2016
    07 Sep 2015
    Link to this post
    Hi,

    The PowerTools project is not officially supported as is stated in its Readme, however judging from the error the problem appears to be coming from the fact that the PureMvcPageResolver class has been moved from the Telerik.Sitefinity.dll to the Telerik.Sitefinity.Mvc.dll.

    Feel free to clone the repository and modify the code to abide to that change.

    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
     
2 posts, 0 answered