简体   繁体   English

ASP.NET Core 3.1 app on IIS 表示:“无法访问此站点”和“连接已重置”

[英]ASP.NET Core 3.1 app on IIS Express: “This site can't be reached” and "The connection was reset"

I have developed ASP.NET project in Visual Studio 2019. When I try to run the project with IIS Express, the webpage says “This site can't be reached” and "The connection was reset".我在 Visual Studio 2019 中开发了 ASP.NET 项目。当我尝试使用 IIS Express 运行项目时,网页显示“无法访问此站点”和“连接已重置”。

In taskbar I can see that IIS Express is working and I'm able to debug and step though my code till the very end successfully so I know the service is executing fine without any errors.在任务栏中,我可以看到 IIS Express 正在运行,我能够调试并单步调试我的代码,直到最后成功,所以我知道该服务执行正常,没有任何错误。

Site can`t be reached无法访问网站

I created a new project, just to ensure that there weren't any errors within my config or build files.我创建了一个新项目,只是为了确保我的配置或构建文件中没有任何错误。 When I run the new project, I get the same result.当我运行新项目时,我得到了相同的结果。

I tried with other browsers as well, but still the same error.我也尝试了其他浏览器,但仍然是同样的错误。

I repaired the Visual Studio using the Visual Studio Installer, and reset everything to default, and had no success with that.我使用 Visual Studio 安装程序修复了 Visual Studio,并将所有内容重置为默认值,但没有成功。

I tried to delete hidden vs. folder and had no success.我试图删除隐藏的 vs. 文件夹但没有成功。

Any advice on how to resolve this would be greatly appreciated.任何有关如何解决此问题的建议将不胜感激。 Thanks!谢谢!

I fixed the issue by deleting Kaspersky Antivirus.我通过删除 Kaspersky Antivirus 解决了这个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IIS Express 上的 ASP.NET Core 3.1 应用程序:“无法访问此站点” - ASP.NET Core 3.1 app on IIS Express: "This site can't be reached" Visual Studio ASP.NET Core Debug IIS Express - 无法访问站点 - Visual Studio ASP.NET Core Debug IIS Express - Site can't be reached 运行时模板中的新 ASP.NET 核心应用程序给出“无法访问此站点” - New ASP.NET core app from template when run gives “This site can't be reached” ASP.NET 内核 Web 3.1 - IIS Express 可以从 localdb 获取数据,但本地 Z5DA5ACF461B4EFB27E6ZEC6 不能 - ASP.NET Core Web 3.1 - IIS Express can fetch data from localdb but local IIS can not Run ASP.NET Core 3.1 Web API using IIS Express without Building the App on Windows - Run ASP.NET Core 3.1 Web API using IIS Express without Building the App on Windows asp.net core razor pages project in visual code localhost:5001 return 这个站点无法访问 - asp.net core razor pages project in visual code localhost:5001 return This site can’t be reached ASP.Net Core WSFederationAuth 使用 Cookie 登录 - 无法访问站点 - ASP.Net Core WSFederationAuth Login with Cookie - Site can't be reached 为什么我不能在 IIS 上运行 ASP.NET Core 3.1 和 hosting bundle version6.0.4? - Why can't I run ASP.NET Core 3.1 on IIS with hosting bundle version6.0.4? 无法在IIS Express中启动asp.net核心Web应用程序 - Cannot launch asp.net core web app in IIS Express ASP.NET Core应用程序在IIS Express中不起作用 - ASP.NET Core application doesn't work in IIS Express
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM