Visual Studio 正在运行,但本地主机无法连接 [英] visual studio is running, but localhost can't connect

查看:52
本文介绍了Visual Studio 正在运行,但本地主机无法连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 vs 2015 和一个 asp.net mvc 5 网站.直到不久前它运行良好,但就在今天,我注意到它停止工作.当我开始调试时,visual studio 运行良好,IIS Express 也是如此,但找不到 localhost 页面.

I have vs 2015, and a asp.net mvc 5 website. It was running fine until a while back, but just today I noticed it stopped working. When I start debugging, visual studio is running fine, and so is IIS Express, but localhost page cannot be found.

这就是我的 IIS Express.

This is what my IIS Express.

还有视觉工作室

和浏览器

我无法弄清楚出了什么问题.我尝试过但没有帮助的事情:

I cannot figure out what is wrong. Things I've tried, which didn't help:

1) 重新安装(干净)IIS Express 10
2) 删除文件夹C:\Users\Razor\Documents\IISExpress,以便visual studio 重启时,重新创建文件夹.
3) 删除解决方案文件夹的 .vs 目录(包含 applicationhost.config)并重新创建.

1) Reinstall (clean) IIS Express 10
2) Deleted the folder C:\Users\Razor\Documents\IISExpress so that when visual studio is restarted, it creates the folder again.
3) Deleted the Solution folder's .vs directory (that contains the applicationhost.config) and it was re-created again.

以上方法均无效.谁能帮我弄清楚这里出了什么问题?

None of the above methods have worked. Can anyone help me figure out what's going wrong in here?

推荐答案

对我有用的是从控制面板修复 IIS Express 10(或您获得的版本)

What worked for me was to repair IIS Express 10 (Or the version you got) from the control panel

这篇关于Visual Studio 正在运行,但本地主机无法连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆