Po zainstalowaniu ASP.NET MVC 4 Beta na komputerze z ASP.NET MVC 3 pojawia się następujący wyjątek.
Wyjątek System.InvalidCastException nie został obsłużony przez kod użytkownika. Message = [A] System.Web.WebPages.Razor.Configuration.HostSection nie może zostać przesłany do [B] System.Web.WebPages.Razor.Configuration.HostSection. Typ A pochodzi z „System.Web.WebPages.Razor, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35” w kontekście „Default” w lokalizacji „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 pochodzi z „System.Web.WebPages.Razor, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35” w kontekście „Default” w lokalizacji „C: \ Windows \ Microsoft.Net \ assembly \ GAC_MSIL \ System .Web.WebPages.Razor \ v4.0_2.0.0. 0__31bf3856ad364e35 \ System.Web.WebPages.Razor.dll '. Źródło = System.Web.WebPages.Razor
Ślad stosu:
at System.Web.WebPages.Razor.WebRazorHostFactory.GetRazorSection (String virtualPath) w System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig (String virtualPath, String physicalPath) at System.Web.WebPages.Razor.Razor.Build () System.Web.WebPages.Razor.RazorBuildProvider.CreateHost () w System.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode () w System.Web.WebPages.Razor.RazorBuildProvider.get_CodeCompiler.WebProvider. GetCompilerTypeFromBuildProvider (BuildProvider buildProvider) w System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders () w System.Web.Compilation.BuildProvidersCompiler.PerformBuild () w System.Web.Compilation.BuildManager.CompileWebFile (ścieżka_wirtualna ścieżka_wirtualna) w System.Web.Compilation.BuildManager.GetVPathBuildResultInternal (ścieżka_wirtualna ścieżka_wirtualna, logicznej noBuild, logicznej allowCrossApp, logicznej allowBuildInPrecompile, logicznej throwIfNotFound, logiczna ensureIsUpToDate) w System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert (HttpContext kontekście ścieżka_wirtualna ścieżka_wirtualna , Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean secureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory (VirtualPath virtualPath, Boolean secureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory (VirtualPath virtualPath, Boolean secureIsUpToDate) w System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory (VirtualPath virtualPath, Boolean secureIsUpToDate) Web.Mvc.IBuildManager.FileExists (String virtualPath) w System.Web.Mvc.BuildManagerViewEngine.FileExists (ControllerContext controllerContext, String virtualPath) w System.Web.Mvc.VirtualPathProviderViewEngine.GetPathFromGeneralName (ControllerContext controllerContext, List`1 location, String name, String controllerName, String areaName, String cacheKey, String [] &earchLocations) w System.Web. Mvc.VirtualPathProviderViewEngine.GetPath (ControllerContext controllerContext, String [] locations, String [] areaLocations, String locationsPropertyName, String name, String controllerName, String cacheKeyPrefix, Boolean useCache, String [] &earchLocations) at System.Web.Mvc.VindtualView (ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) w System.Web.Mvc.ViewEngineCollection. <> C__DisplayClassc.b__b (IViewEngine e) w System.Web.Mvc.ViewEngineCollection.Find (Func`2 lookup, Boolean trackSearchedPaths) at System.Web.Mvc.ViewEngineCollection.FindView (ControllerContext controllerContext, String viewName, String masterName) at System.Web.Mvc .ViewResult.FindView (kontekst ControllerContext) w System.Web.Mvc.ViewResultBase.ExecuteResult (kontekst ControllerContext) w System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (ControllerContext controllerContext, ActionResult actionResult) w System.Web.Mvoker. c__DisplayClass1c.b__19 () w System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter (filtr IResultFilter, ResultExecutingContext preContext, kontynuacja Func`1) w System.Web.Mvc.ControllerActionInvoker. <> c__cDisplay. <Class.> c__DisplayClass1e.b__1b () w System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters (ControllerContext controllerContext, filtry IList`1, ActionResult actionResult) w System.Web.Mvc.ControllerActionResultWithFilters (ControllerContext controllerContext, filtry IList`1, ActionResult actionResult) w System.Web.Mvc.ControllerActionResultWithFilters (ControllerContext controllerContext, filtry IList`1, ActionResult actionResult) w System.Web.Mvc.ControllerActionInvoker.InvokeAction kontroler (ControllerCext). Mvc.Controller.ExecuteCore () w [project_namespace] .Controllers.GlobalizationController.ExecuteCore () w [file_path] w System.Web.Mvc.ControllerBase.Execute (RequestContext requestContext) w System.Web.Mvc.ControllerBase.System.Web. Mvc.IController.Execute (RequestContext requestContext) w System.Web.Mvc.MvcHandler. <> C__DisplayClass6. <> C__DisplayClassb.b__5 () at System.Web.Mvc.Async.AsyncResultWrapper. <> C__DisplayClass1. Web.Mvc.Async.AsyncResultWrapper. <> C__DisplayClass8`1.b__7 (IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End () at System.Web.Mvc.MvcHandler. System. System.Web.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End () w System.Web.Mvc.MvcHandler. <> C__DisplayClasse.b__d () w System.Web.Mvc.SecurityUtil.b__0 (działanie f) w System.Web. Mvc.SecurityUtil.ProcessInApplicationTrust (akcja akcji) w System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) w System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandsler.End.EndAequpl (wynik IHttpAsyncHandsler.End) CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () w System.Web.HttpApplication.ExecuteStep (krok IExecutionStep, wartość logiczna i zakończonaSynchronicznie)Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End () w System.Web.Mvc.MvcHandler. <> C__DisplayClasse.b__d () w System.Web.Mvc.SecurityUtil.b__0 (działanie f) w System.Web. Mvc.SecurityUtil.ProcessInApplicationTrust (akcja akcji) w System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) w System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandsler.End.EndAequpl (wynik IHttpAsyncHandsler.End) CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () w System.Web.HttpApplication.ExecuteStep (krok IExecutionStep, wartość logiczna i zakończonaSynchronicznie)b__0 (akcja f) w System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust (akcja akcji) w System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) w System.Web.Mvc.MvcHandler.System.Webs.IHttcHandler.System.Webs.IHttroc IAsyncResult result) w System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () w System.Web.HttpApplication.ExecuteStep (IExecutionStep krok, Boolean i zakończonoSynchronicznie)b__0 (akcja f) w System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust (akcja akcji) w System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) w System.Web.Mvc.MvcHandler.System.Webs.IHttcHandler.System.Webs.IHttroc IAsyncResult result) w System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () w System.Web.HttpApplication.ExecuteStep (IExecutionStep krok, Boolean & CompleteSynchronously)HttpApplication.IExecutionStep.Execute () at System.Web.HttpApplication.ExecuteStep (krok IExecutionStep, wartość logiczna i zakończonaSynchronicznie)HttpApplication.IExecutionStep.Execute () at System.Web.HttpApplication.ExecuteStep (krok IExecutionStep, wartość logiczna i zakończonaSynchronicznie)
To mnie całkowicie blokuje i chociaż chciałbym zachować wersję beta, być może będę musiał całkowicie ją usunąć, aby pozbyć się wyjątku.