【发布时间】:2020-05-26 13:57:03
【问题描述】:
我在 Visual Studio 中开发了一个 ASP.NET MVC Core 应用程序,它引用了 wwwroot 文件夹中的引导文件:
/wwwroot/lib/bootstrap/dist/bootstrap.min.js
当我使用 IIS Express 运行该站点时,它会使用此 URL 返回文件:
http://example.com/Identity/lib/bootstrap/dist/js/bootstrap.bundle.min.js
我现在正在将站点部署到 IIS,但此 URL 不再有效并返回 404。我已将程序配置为从 IIS 集成开始:
webBuilder
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>();
我错过了什么?
URL 的“身份”部分来自 Identity Server 4,因此 bootstrap.bundle.min.js 文件可能来自此包。
【问题讨论】:
标签: javascript asp.net-mvc asp.net-core