ASP.NET MVC3を搭載したマシンにASP.NETMVC 4 Betaをインストールした後、次の例外が発生します。
System.InvalidCastExceptionはユーザーコードによって処理されませんでしたMessage = [A] System.Web.WebPages.Razor.Configuration.HostSectionを[B] System.Web.WebPages.Razor.Configuration.HostSectionにキャストできません。タイプAは、「System.Web.WebPages.Razor、Version = 1.0.0.0、Culture = neutral、PublicKeyToken = 31bf3856ad364e35」のコンテキスト「Default」の場所「C:\ Windows \ Microsoft.Net \ assembly \ GAC_MSIL \ System」に由来します。 .Web.WebPages.Razor \ v4.0_1.0.0.0__31bf3856ad364e35 \ System.Web.WebPages.Razor.dll '。タイプBは、「System.Web.WebPages.Razor、Version = 2.0.0.0、Culture = neutral、PublicKeyToken = 31bf3856ad364e35」のコンテキスト「Default」の場所「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
スタックトレース:
System.Web.WebPages.Razor.WebRazorHostFactory.GetRazorSection(String virtualPath)at System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig(String virtualPath、String PhysicalPath)at System.Web.WebPages.Razor.RazorBuildProvider.GetHostFromConfig()at System.Web.WebPages.Razor.RazorBuildProvider.get_CodeCompilerType()のSystem.Web.WebPages.Razor.RazorBuildProvider.get_CodeCompilerType()のSystem.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode()のSystem.Web.WebPages.Razor.RazorBuildProvider.CreateHost() System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()のGetCompilerTypeFromBuildProvider(BuildProvider buildProvider)、System.Web.Compilation.BuildManagerのSystem.Web.Compilation.BuildProvidersCompiler.PerformBuild()。System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath、Boolean noBuild、Boolean allowCrossApp、Boolean allowBuildInPrecompile、Boolean throwIfNotFound、Boolean sureIsUpToDate)at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext)のCompileWebFile(VirtualPath virtualPath) 、ブールnoBuild、ブールallowCrossApp、ブールallowBuildInPrecompile、ブールthrowIfNotFound、ブールensureIsUpToDate)at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath、HttpContext context、ブールallowCrossApp、ブールthrowIfNotFound)at System.Web.Mvc.BuildManagerWrapper.System System.Web.Mvc.BuildManagerViewEngineのWeb.Mvc.IBuildManager.FileExists(String virtualPath)。System.Web.Mvc.VirtualPathProviderViewEngine.GetPathFromGeneralName(ControllerContext controllerContext、List`1の場所、文字列名、文字列controllerName、文字列areaName、文字列cacheKey、文字列[]&searchedLocations)のFileExists(ControllerContext controllerContext、String virtualPath) Mvc.VirtualPathProviderViewEngine.GetPath(ControllerContext controllerContext、String [] location、String [] areaLocations、String locationPropertyName、String name、String controllerName、String cacheKeyPrefix、Boolean useCache、String []&searchedLocations)at System.Web.Mvc.VirtualPathProviderViewEngine.FindView (ControllerContext controllerContext、String viewName、String masterName、Boolean useCache)atSystem.Web.Mvc.ViewEngineCollection。<> c__DisplayClassc。System.Web.Mvc.ViewEngineCollection.FindView(Func`2 lookup、Boolean trackSearchedPaths)at System.Web.Mvc.ViewEngineCollection.FindView(ControllerContext controllerContext、String viewName、String masterName)atSystem.Web.Mvcのb__b(IViewEngine e) .ViewResult.FindView(ControllerContext context)at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext、ActionResult actionResult)atSystem.Web.Mvc.ControllerActionInvoker。<> System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter、ResultExecutingContext preContext、Func`1 continuation)のc__DisplayClass1c.b__19()atSystem.Web.Mvc.ControllerActionInvoker。<> c__DisplayClass1c。<> c__DisplayClass1e.b__1b()at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext、IList`1 Filters、ActionResult actionResult)at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext、String actionName)atSystem.Web。 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)atSystem.Web.Mvc.ControllerBase.System.Webの[file_path]の[project_namespace] .Controllers.GlobalizationController.ExecuteCore()のMvc.Controller.ExecuteCore()。 Mvc.IController.Execute(RequestContext requestContext)atSystem.Web.Mvc.MvcHandler。<> c__DisplayClass6。<> c__DisplayClassb.b__5()at System.Web.Mvc.Async.AsyncResultWrapper。<> c__DisplayClass1.b__0()atSystem。 Web.Mvc。Async.AsyncResultWrapper。<> c__DisplayClass8`1.b__7(IAsyncResult _)at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()atSystem.Web.Mvc.MvcHandler。<> c__DisplayClasse.b__d()at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)atSystem.Web.Mvc.MvcHandler。 System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()at System.Web.HttpApplication.ExecuteStep(IExecutionStep step、Boolean&completedSynchronously)Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()atSystem.Web.Mvc.MvcHandler。<> c__DisplayClasse.b__d()at System.Web.Mvc.SecurityUtil.b__0(Action f)atSystem.Web。 System.Web.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)atSystem.Web.HttpApplicationのMvc.SecurityUtil.ProcessInApplicationTrust(Action action) System.Web.HttpApplication.ExecuteStep(IExecutionStep step、Boolean&completedSynchronously)のCallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()atSystem.Web.Mvc.MvcHandler。<> c__DisplayClasse.b__d()at System.Web.Mvc.SecurityUtil.b__0(Action f)atSystem.Web。 System.Web.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)atSystem.Web.HttpApplicationのMvc.SecurityUtil.ProcessInApplicationTrust(Action action) System.Web.HttpApplication.ExecuteStep(IExecutionStep step、Boolean&completedSynchronously)のCallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(アクションアクション)のb__0(アクションf)System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)のSystem.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest( IAsyncResult結果)at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()at System.Web.HttpApplication.ExecuteStep(IExecutionStep step、Boolean&completedSynchronously)System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(アクションアクション)のb__0(アクションf)System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)のSystem.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest( IAsyncResult結果)at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()at System.Web.HttpApplication.ExecuteStep(IExecutionStep step、Boolean&completedSynchronously)System.Web.HttpApplication.ExecuteStep(IExecutionStep step、Boolean&completedSynchronously)のHttpApplication.IExecutionStep.Execute()System.Web.HttpApplication.ExecuteStep(IExecutionStep step、Boolean&completedSynchronously)のHttpApplication.IExecutionStep.Execute()
これは私を完全にブロックし、ベータ版を維持したいのですが、例外を取り除くために完全に削除する必要があるかもしれません。