发布后找不到服务器端 Blazor 登录页面路径

Server-side Blazor login page path not found after publish

我有一个管理登录的 cshtml 页面。 当我 运行 来自 Visual Studio 的应用程序时,登录页面工作。 但是在我发布之后我得到 "Page not found Sorry, but there's nothing here!".

与url不同。当从 IIS 运行ning 时,url 是 http://localhost/bbs and of course when I run it from VS it's http://localhost:44022。 我添加了 <base href="/bbs/" />app.UsePathBase("/bbs");,起始页看起来是正确的。我错过了什么?

提前致谢!

是因为代码被混淆了。