我已经为Web Api 2安装了正确的包
Install-Package Microsoft.AspNet.WebApi.HelpPage -Pre
但是帮助区域没有映射,返回404 (Web Api工作正常)。我使用Microsoft.Owin.Host.SystemWeb作为主机。下面是我的启动代码。
public class Startup
{
public void Configuration(IAppBuilder app)
{
//Required for MVC areas new HttpConfiguration() doesn't work with MVC
var config = GlobalConfiguration.Configuration;
AreaRegistration.RegisterAllAreas();
WepApiStartup.Configure(config);
app.UseWebApi(config);
}
}
https://stackoverflow.com/questions/18921215
复制相似问题