全新的 ASP .NET Core Web 应用程序出现 404 错误

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

我正在运行 Visual Studio 2022,并且有一个 .NET Web 应用程序,该应用程序已经完美运行了一段时间。大约一个月前,我买了一台新笔记本电脑,并重新安装了所有组件,并且运行良好。今天这个网站开始为每个页面提供 404 错误:

This localhost page can’t be found
No webpage was found for the web address: https://localhost:7066/
HTTP ERROR 404

所以我尝试创建一个全新的网站,它也做了同样的事情。我猜这是 IISExpress 的问题,但不知道如何诊断或修复?

asp.net visual-studio iis-express
1个回答
0
投票

完全卸载了 Visual Studio 和 iisexpress 并重新安装,现在它又可以工作了。

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