Pure MVC / Root Template change via Power Tools results in Exception
Hi
Using a fresh install of Sitefinity 8.1.5810.0 I've attempted to change the default template as per the instructions here:
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
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