HelpPage在路由区域后找不到视图

问题描述 投票:1回答:1

[嗨,我的朋友们,我为我的Web api项目启动了Api帮助页面。

现在的问题是,在其他区域路由后,找不到index.cshtml的我的帮助页面。这是global.asax代码,我张贴了错误消息的图片

protected void Application_Start()
   {
       GlobalConfiguration.Configure(WebApiConfig.Register);
       FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
       RouteConfig.RegisterRoutes(RouteTable.Routes);
       BundleConfig.RegisterBundles(BundleTable.Bundles);

       AreaRegistration.RegisterAllAreas();

       MvcHandler.DisableMvcResponseHeader = true; /*Version Discloser 5 in 10 point*/
       //Infrastructure.ConnectionStringEncryption.EncryptConnString();
       //GlobalFilters.Filters.Add(new HandleAntiforgeryTokenErrorAttribute() { ExceptionType = typeof(HttpAntiForgeryException) });




   }

enter image description here

asp.net-mvc routing asp.net-web-api-routing
1个回答
0
投票

很好的问题,我也有这个问题

© www.soinside.com 2019 - 2024. All rights reserved.