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

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

问题描述

我使用Visual Studio 2008,我有一个ASP.NET开发配置工作正常,但今天,当我尝试启动任何ASP.NET项目在开发Web服务器,浏览器打开,但我得到一个错误无法建立到localhost的连接: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#代码文件关联到默认页面,我得到一个警告,断点将不会击中。没有为此文档加载符号。

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:

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 localhost

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天全站免登陆