Nach der Installation von ASP.NET MVC 4 Beta auf einem Computer mit ASP.NET MVC 3 wird die folgende Ausnahme angezeigt.
System.InvalidCastException wurde vom Benutzercode Message = [A] System.Web.WebPages.Razor.Configuration.HostSection wurde nicht in [B] System.Web.WebPages.Razor.Configuration.HostSection umgewandelt. Typ A stammt aus 'System.Web.WebPages.Razor, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' im Kontext 'Default' am Speicherort 'C: \ Windows \ Microsoft.Net \ Assembly \ GAC_MSIL \ System .Web.WebPages.Razor \ v4.0_1.0.0.0__31bf3856ad364e35 \ System.Web.WebPages.Razor.dll '. Typ B stammt aus 'System.Web.WebPages.Razor, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' im Kontext 'Default' am Speicherort 'C: \ Windows \ Microsoft.Net \ Assembly \ GAC_MSIL \ System .Web.WebPages.Razor \ v4.0_2.0.0. 0__31bf3856ad364e35 \ System.Web.WebPages.Razor.dll '. Source = System.Web.WebPages.Razor
StackTrace:
at System.Web.WebPages.Razor.WebRazorHostFactory.GetRazorSection (String virtualPath) at System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig (String virtualPath, String PhysicalPath) at System.Web.WebPages.Raz.Raz.Razor System.Web.WebPages.Razor.RazorBuildProvider.CreateHost () unter System.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode () unter System.Web.WebPages.Razor.RazorBuildProvider.omp.CodeComp. GetCompilerTypeFromBuildProvider (BuildProvider buildProvider) unter System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders () unter System.Web.Compilation.BuildProvidersCompiler.PerformBuild () unter System.Web.Comp.CompileWebFile (VirtualPath virtualPath) bei System.Web.Compilation.BuildManager.GetVPathBuildResultInternal (VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) bei System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert (Httpcontext Zusammenhang VirtualPath virtualPath , Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean sureIsUpToDate) bei System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory Web.Mvc.IBuildManager.FileExists (String virtualPath) unter System.Web.Mvc.BuildManagerViewEngine.FileExists (ControllerContext controllerContext, String virtualPath) unter System.Web.Mvc.VirtualPathProviderViewEngine.GetPathFromGeneralName (ControllerContext controllerContext, List`1-Speicherorte, Stringname, String controllerName, String areaName, String cacheKey, String [] & searchedWocations). Mvc.VirtualPathProviderViewEngine.GetPath (ControllerContext controllerContext, String [] -Standorte, String [] areaLocations, String-StandortePropertyName, String-Name, String-Controller-Name, String-CacheKeyPrefix, Boolean useCache, String [] & searchedLocations) bei System.Web.Vir (ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) bei System.Web.Mvc.ViewEngineCollection. <> C__DisplayClassc.b__b (IViewEngine e) bei System.Web.Mvc.ViewEngineCollection.Find (Func`2-Suche, Boolean trackSearchedPaths) bei System.Web.Mvc.ViewEngineCollection.FindView (ControllerContext controllerContext, String viewName, String masterName) bei System.Web .ViewResult.FindView (ControllerContext-Kontext) bei System.Web.Mvc.ViewResultBase.ExecuteResult (ControllerContext-Kontext) bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (ControllerContext controllerContext, ActionResult actionResult) c__DisplayClass1c.b__19 () bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter (IResultFilter-Filter, ResultExecutingContext preContext, Func`1-Fortsetzung) bei System.Web.Mvc.ControllerActionInvoker. <> c__D> c__DisplayClass1e.b__1b () bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters (ControllerContext controllerContext, IList`1-Filter, ActionResult actionResult) bei System.Web.Mvc.ControllerActionInvoker.ControllerActionInvoker.ControllerActionInvoker. Mvc.Controller.ExecuteCore () unter [project_namespace] .Controllers.GlobalizationController.ExecuteCore () unter [file_path] unter System.Web.Mvc.ControllerBase.Execute (RequestContext requestContext) unter System.Web.Mvc.ControllerBase. Mvc.IController.Execute (RequestContext requestContext) bei System.Web.Mvc.MvcHandler. <> C__DisplayClass6. <> C__DisplayClassb.b__5 () bei System.Web.Mvc.Async.AsyncResultWrapper. <> C__DisplayClass1.b. Web.Mvc.Async.AsyncResultWrapper. <> C__DisplayClass8`1.b__7 (IAsyncResult _) bei System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End () bei System.Web.Mvc.MvcHandler. <> C System.Web.Mvc.SecurityUtil.b__0 (Aktion f) unter System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust (Aktionsaktion) unter System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) unter Systemc.MvM. System.Web.IHttpAsyncHandler.EndProcessRequest (IAsyncResult-Ergebnis) bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () bei System.Web.HttpecSecu.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End () bei System.Web.Mvc.MvcHandler. <> C__DisplayClasse.b__d () bei System.Web.Mvc.SecurityUtil.b__0 (Aktion f) bei System.Web. Mvc.SecurityUtil.ProcessInApplicationTrust (Aktionsaktion) bei System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) bei System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.Er. CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () bei System.Web.HttpApplication.ExecuteStep (IExecutionStep-Schritt, Boolean & completeSynchronously)Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End () bei System.Web.Mvc.MvcHandler. <> C__DisplayClasse.b__d () bei System.Web.Mvc.SecurityUtil.b__0 (Aktion f) bei System.Web. Mvc.SecurityUtil.ProcessInApplicationTrust (Aktionsaktion) bei System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) bei System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.Er. CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () bei System.Web.HttpApplication.ExecuteStep (IExecutionStep-Schritt, Boolean & completeSynchronously)b__0 (Aktion f) bei System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust (Aktionsaktion) bei System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) bei System.Web.Mvc.MvcHandler.System.Wep. IAsyncResult-Ergebnis) bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () bei System.Web.HttpApplication.ExecuteStep (IExecutionStep-Schritt, Boolean & completeSynously)b__0 (Aktion f) bei System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust (Aktionsaktion) bei System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) bei System.Web.Mvc.MvcHandler.System.Wep. IAsyncResult-Ergebnis) bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () bei System.Web.HttpApplication.ExecuteStep (IExecutionStep-Schritt, Boolean & completeSynously)HttpApplication.IExecutionStep.Execute () bei System.Web.HttpApplication.ExecuteStep (IExecutionStep-Schritt, Boolean & completeSynchronously)HttpApplication.IExecutionStep.Execute () bei System.Web.HttpApplication.ExecuteStep (IExecutionStep-Schritt, Boolean & completeSynchronously)
Dies blockiert mich vollständig und obwohl ich die Beta behalten möchte, muss ich sie möglicherweise vollständig entfernen, um die Ausnahme zu beseitigen.