Using Razor quite a bit lately and just encountered a surprise after upgrading a site to 5.06.05 (on .NET 4 if that matters). Any page with the Razor Host module has stopped working and when logged in as Host displays:
DotNetNuke.Services.Exceptions.ModuleLoadException:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\14793d17\53295e9e\App_Web_razorhost.ascx.97268e87.jqlhllbc.0.vb(58): error BC32206:
The project currently contains references to more than one version of DotNetNuke.Web.Razor, a direct reference to version 5.6.4.0 and an indirect reference (through 'DotNetNuke.Modules.RazorHost.RazorHost') to version 5.6.5.0. Change the direct reference to use version 5.6.5.0 (or higher) of DotNetNuke.Web.Razor.
---> System.Web.HttpCompileException: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\14793d17\53295e9e\App_Web_razorhost.ascx.97268e87.jqlhllbc.0.vb(58): error BC32206: The project currently contains references to more than one version of DotNetNuke.Web.Razor, a direct reference to version 5.6.4.0 and an indirect reference (through 'DotNetNuke.Modules.RazorHost.RazorHost') to version 5.6.5.0. Change the direct reference to use version 5.6.5.0 (or higher) of DotNetNuke.Web.Razor. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---