无法建立本地ASP.NET开发Web服务器上连接? [英] Can't establish connection on local ASP.NET development web server?

查看:93
本文介绍了无法建立本地ASP.NET开发Web服务器上连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2008中,我有一个ASP.NET dev的配置工作正常,但今天当我尝试开发网络服务器中启动任何ASP.NET项目,浏览器打开,但我得到一个错误无法建立到本地主机的连接:64428

I am using Visual Studio 2008, and I had an ASP.NET dev configuration working fine, but today when I try to launch any ASP.NET project within the development web server, the browser opens, but I get an error Can't establish a connection to localhost:64428 (port varying at each attempt).

问题是与新创建的Web应用程序,甚至发生。

The problem is happening even with a newly created Web Application.

当我尝试添加一个破发点相关联的默认页的C#code文件,我得到一个警告,断点将目前尚未受到打击。无符号已加载此文件。

When I try to add a break point the C# code file associated to the default page, I get a warning that The breakpoint will not currently be hit. No symbols have been loaded for this document.

我想我已经能够打破我的本地ASP.NET开发Web服务器的配置。有谁知道如何解决这种情况呢?

I guess that I have managed to break the configuration of my local ASP.NET development web server. Does anyone know how to fix such a situation?

推荐答案

我在这里找到一个潜在的解决方案:

I found one potential solution here:

<一个href=\"http://www.grumpydev.com/2009/03/12/strange-problem-unable-to-connect-to-the-aspnet-webserver-on-localhost/comment-page-1/#comment-73\" rel=\"nofollow\">http://www.grumpydev.com/2009/03/12/strange-problem-unable-to-connect-to-the-aspnet-webserver-on-localhost/comment-page-1/#comment-73

综上所述,编辑hosts文件,包括:

In summary, edit your hosts file to include:

127.0.0.1本地主机

127.0.0.1 localhost

不知道我的是怎么改变,或者如果它甚至被改变是问题的原因,但我现在好走,因为添加上述条目和评论了:: 1项。

Not sure how mine got changed or if it even being changed was the cause of the problem, but I'm good to go now since adding the above entry and commenting out the "::1" entry.

这篇关于无法建立本地ASP.NET开发Web服务器上连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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