ASP.NET MVC 5:无法连接到Web服务器“IIS防爆preSS” [英] ASP.NET 5 MVC: unable to connect to web server 'IIS Express'
问题描述
我在做什么:
- 打开Visual Studio的2015年社区
- 文件 - >新建 - >项目
- 在的Visual C#:网站 - > ASP.NET Web应用程序
- Web应用程序
- 和preSS F5的弹出错误无法连接到Web服务器IIS防爆preSS'。
删除对ApplicationHost.config,位于文档\\ IISEx preSS \\ config中,不改变错误消息。 (还有程序文件和程序文件(x86)的一个IISEx preSS文件夹。)
Deleting applicationhost.config, located in Documents\IISExpress\config, doesn't change the error message. (There's also an IISExpress folder in program files and program files (x86).)
东西我注意到了,我不知道这是否是一个问题:引用文件的lib / jQuery的验证/ jquery.validate.js找不到
Something I noticed, and I don't know if it's a problem: "Referenced file 'lib/jquery-validation/jquery.validate.js' not found."
我得到rawcap转储,但我并不在那里发现了。有些东西在那里:框架:{FrameworkName:DNXCore,版本V5.0 =,友好名称:DNX核心5.0,短名称:dnxcore50,RedistListPath:空}
I got a dump with rawcap but I don't notice much in there. Some of what was there: "Framework":{"FrameworkName":"DNXCore,Version=v5.0","FriendlyName":"DNX Core 5.0","ShortName":"dnxcore50","RedistListPath":null}
我没有注意到一个问题,但我对网络的数据,如果能够帮助弄清楚为什么我不能连接到Web服务器。我得到一个RST,ACK立刻让我猜的端口关闭,无论这个网络服务器,是不是被设置。
I don't notice a problem, but I have the network data if that can help figure out why I cannot connect to the web server. I get a RST,ACK immediately so I'm guessing the port is closed and whatever this web server is, isn't being setup.
我试过:
- 删除对ApplicationHost.config(和改变端口号)
- 运行Visual Studio以管理员身份
- 删除IISEx preSS在Documents文件夹中(直至文件夹重新安装改变错误信息)
- 反复SSL和关闭,复制URL以启动框。 (注:我没有使用SSL)
- 清除所有SFC / SCANNOW错误
- 开始iisex preSS使用x86版本和64位版本
推荐答案
安装Update 2的Visual Studio 2015年,我开始得到同样的错误。我想上面没有运气的一切。然而,我发现,我工作的解决方案:
After installing Update 2 for Visual Studio 2015 I started getting the same error. I tried everything above with no luck. However, I found a solution that works for me:
- 删除YourSolutionFolder \\ .VS \\ CONFIG \\ ApplicationHost.config文件(注:.VS是一个隐藏文件夹)
- 在网站打开Visual Studio中,右键单击>属性>调试选项卡> Web服务器设置>应用程序URL - 更改端口号
这篇关于ASP.NET MVC 5:无法连接到Web服务器“IIS防爆preSS”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!