我现在突然在仅 1 页中收到以下消息。可能是什么问题?
我正在使用 MVC ASP .NET 做一个网站。
System.Web.HttpCompileException (0x80004005): c: \Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\fcd5a636\19fe4d1\App_Web_create.cshtml.c6727781.9mayykrj.0.cs(162) :错误CS1528:预期;或 = (不能在声明中指定构造函数参数)在 System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 在 System.Web.Compilation.AssemblyBuilder.Compile() 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) 在 System .Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild,
1 locations, String name, String controllerName, String areaName, String cacheKey, String[]& searchedLocations) at System.Web.Mvc.VirtualPathProviderViewEngine.GetPath(ControllerContext controllerContext, String[] locations, String[] areaLocations, String locationsPropertyName, String name, String controllerName, String cacheKeyPrefix, Boolean useCache, String[]& searchedLocations) at System.Web.Mvc.VirtualPathProviderViewEngine.FindView(ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) at System.Web.Mvc.ViewEngineCollection.<>c__DisplayClassc.<FindView>b__b(IViewEngine e) at System.Web.Mvc.ViewEngineCollection.Find(Func
2 在 System.Web.Mvc.ViewResult.FindView(ControllerContext context) 在 System.Web.Mvc.ViewEngineCollection.FindView(ControllerContext controllerContext, String viewName, String masterName) 在 System.Web.Mvc.ViewResultBase.FindView(ControllerContext context) 的查找,布尔 trackSearchedPaths) (ControllerContext 上下文) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) 在 System.Web.Mvc.ControllerActionInvoker.<>c_ DisplayClass1c.b _19() 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter( IResultFilter 过滤器、ResultExecutingContext preContext、Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList
1 个过滤器,ActionResult actionResult) 在 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) 在 System.Web.Mvc.Controller.ExecuteCore() 在 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) 在System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) 在 System.Web.Mvc.MvcHandler.<>c_ DisplayClass6.<>c _DisplayClassb.b_ 5() 在 System.Web.Mvc .Async.AsyncResultWrapper.<>c _DisplayClass1.b_0 () 在 System.Web.Mvc.Async.AsyncResultWrapper.<>c _DisplayClass81.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult
1.End() 在 System.Web.Mvc.MvcHandler.<> c_DisplayClasse.b_d() 在 System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust 的 System.Web.Mvc.SecurityUtil.b__0(Action f) 在 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) 在 System.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)