I get the following exception after installing ASP.NET MVC 4 Beta on a machine with ASP.NET MVC 3.
Correction System.InvalidCastException was not processed by user code Message = [A] System.Web.WebPages.Razor.Configuration.HostSection could not be added to [B] System.Web.WebPages.Razor.Configuration.HostSection. Type A originates from "System.Web.WebPages.Razor, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 'in the context of" Default "in the location" C: \ Windows \ Microsoft.Net \ assembly \ GAC_MSIL \ System .Web.WebPages.Razor \ v4.0_1.0.0.0__31bf3856ad364e35 \ System.Web.WebPages.Razor.dll. Type B is taken from "System.Web.WebPages.Razor, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" in the "Default" context in the location "C: \ Windows \ Microsoft.Net \ assembly \ GAC_MSIL \ System .Web.WebPages.Razor \ v4.0_2.0.0.03131bf3856ad364e35 \ System.Web.WebPages.Razor.dll '. Source = System.Web.WebPages.Razor
Stacktrace:
in System.Web.WebPages.Razor.WebRazorHostFactory.GetRazorSection (String virtualPath) in System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig (String virtualPath, String physicalPath) in System.Web.WebGazPor.FebRazRobRazRazRobRaz.PromPaz.PebRazRobRaz.PromPaz.PebRazRobRaz.PebRazRobRaz.PromPaz.PebRazRobRaz.PromPaz.FebRaz.PebRazRobRaz.PebRazRobRaz.PromPaz.FebRazRobRaz.PromPaz.FebRazRobRaz.PromPaz.FebRaz.PromPost. System.Web.WebPages.Razor.RazorBuildProvider.CreateHost () in System.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode () in System.Web.WebPages.Razor.RazorBuildProvider.get_WodeCompiler.ildpodepiler.ildpodepiler.ildpodepiler.ilerpild. GetCompilerTypeFromBuildProvider (BuildProvider buildProvider) in System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders () in System.Web.Compilation.BuildProvidersCompiler.PerformBuild () in System.Web.Compilation.BuilePathFeb.PhilePeb.FileWebPathFile.eb BuildManager.GetVPathBuildResultInternal (VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowB uildInPrecompile, Boolean throwIfNotFound, Boolean obespechivaetIsUpToDate) in System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert (HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean obespechivayutIsUpToDate) in System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory (VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) in System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.FileExists (String virtualPath), System.Web.Mvc.BuildConFileController Controller virtualPath) in System.Web.Mvc.VirtualPathProviderViewEngine.GetPathFromGeneralName (ControllerContext controllerContext, List`1 location, String name, String controllerName, String areaName, String cacheKey, String [] & lookLocations) in Sy stem.Web.Mvc.VirtualPathProviderViewEngine.GetPath (ControllerContext controllerContext, String [] location, String [] areaLocations, String locationsPropertyName, String name, String controllerName, String cacheKeyPrefix, Boolean useCache, String [] & lookLocations) in System.Web.v .VirtualPathProviderViewEngine.FindView (ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) in System.Web.Mvc.ViewEngineCollection. <> c__DisplayClassc.b__b (IViewEngine e) in System.Web.Mvc.ViewEngineCollection.Find (Func`2 lookup, Boolean trackSearchedPaths) in System.Web.Mvc.ViewEngineCollection.FindView (ControllerContext controllerContext, String viewName, String viewName, String masterName, String masterName .Web.Mvc.ViewResult.FindView (ControllerContext context) in System.Web.Mvc.ViewResultBase.ExecuteResult (ControllerContext context) in System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (ControllerContext controllerContext, ActionResult). ControllerActionInvoker. <> c__DisplayClass1c.b__19 () in System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter (IResultFilter filter, ResultExecutingContext preContext, continued Func`1) in System.Web.Mvc.ControllerActionInvoker. <> c__DisplayClass1c. <> c__DisplayClass1e.b__1b () in System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters (ControllerContext controllerContext, IList`1, ActionResult actionResult) in System.Web.Mvc.ControllerActionInvoker.InvokeActionConverter Controller (Action) Mvc.Controller.ExecuteCore () in [project_namespace] .Controllers.GlobalizationController.ExecuteCore () in [file_path] in System.Web.Mvc.ControllerBase.Execute (RequestContext requestContext) in System.Web.Mvc.ControllerBase.System.Web. Mvc.IController.Execute (RequestContext requestContext) in System.Web.Mvc.MvcHandler. <> c__DisplayClass6. <> c__DisplayClassb.b__5 () in System.Web.Mvc.Async.AsyncResultWrapper. <> c__DisplayClass1.b__0 () in System.Web.Mvc.Async.AsyncResultWrapper. <> c__DisplayClass8`1.b__7 (IAsyncResult _) in System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End () in System.Web.Mvc.MvcHandler. <> c__DisplayClasse.b__d () in System.Web.Mvc.SecurityUtil.b__0 (Action f) in System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust (action in action) in System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult) System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest (result of IAsyncResult) in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Executepep.ep () logical and complete synchronously)
This completely blocks me, and although I would like to keep the beta version, I may need to completely remove it to get rid of the exception.