'/' 應用程式中發生伺服器錯誤。

The view 'index' or its master was not found. The following locations were searched:
~/Views/KeywordBenefit/index.aspx
~/Views/KeywordBenefit/index.ascx
~/Views/Shared/index.aspx
~/Views/Shared/index.ascx

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.InvalidOperationException: The view 'index' or its master was not found. The following locations were searched:
~/Views/KeywordBenefit/index.aspx
~/Views/KeywordBenefit/index.ascx
~/Views/Shared/index.aspx
~/Views/Shared/index.ascx

原始程式錯誤:

在執行目前 Web 要求期間,產生未處理的例外狀況。如需有關例外狀況來源與位置的資訊,可以使用下列的例外狀況堆疊追蹤取得。

堆疊追蹤:


[InvalidOperationException: The view 'index' or its master was not found. The following locations were searched:
~/Views/KeywordBenefit/index.aspx
~/Views/KeywordBenefit/index.ascx
~/Views/Shared/index.aspx
~/Views/Shared/index.ascx]
   System.Web.Mvc.ViewResult.FindView(ControllerContext context) +543
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +143
   System.Web.Mvc.<>c__DisplayClass14.<InvokeActionResultWithFilters>b__11() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +448
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +659
   System.Web.Mvc.Controller.ExecuteCore() +146
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +56
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +431
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4700.0