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

Posted by Community Admin on 04-Aug-2018 11:04

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

All Replies

Posted by Community Admin on 03-Sep-2015 00:00

Hi 

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

github.com/.../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

Posted by Community Admin on 07-Sep-2015 00:00

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
 

This thread is closed