使用 Cassini 时找不到网页

发布于 2024-07-16 06:11:49 字数 1155 浏览 10 评论 0原文

大约一周以来,我在卡西尼号内加载网页时遇到了麻烦。

我能够打开到服务器的 telnet 会话 - 假设我在端口 8101 上托管,输入 telnet localhost 8101 会打开连接。 我可以简单地输入 GET 并最终得到响应:(

HTTP/1.1 400 Bad Request
Server: ASP.NET Development Server/9.0.0.0
Date: Thu, 09 Apr 2009 18:45:37 GMT
Content-Length: 1208
Connection: Close

为简洁起见,省略了实际的 HTML。足以说明这是一个显示“错误请求”的网页。)

在发现Windows 更新搞乱了它。 它恰好有两个非注释行:

::1             localhost
127.0.0.1       localhost

我尝试使用 Fiddler 来监视流量并得到“目标机器主动拒绝了请求”。

我的防火墙已关闭(无论如何,只要域策略允许)。 我运行的是 Vista x64 并安装了 IIS 7,只需导航到 http://localhost/ 并启动轻松实现IIS7欢迎页面。 如果我选择在 IIS 中托管 Web 项目,它就可以工作(除了几个尚未更新以在 IIS7 中工作的自定义 HTTP 模块,因此这不是永久性的)。

还有其他想法吗?

编辑:尝试使用 FireFox - 在地址栏中获取:

http://localhost:8080/Error.aspx?k=7b85a233-0459-47ab-9414-20c94350ee0e&

页面内容为:

重定向循环

Firefox 检测到服务器正在以永远不会完成的方式重定向对此地址的请求。

浏览器已停止尝试检索所请求的项目。 该网站正在以永远不会完成的方式重定向请求。

I have had trouble getting web pages to load within Cassini for about a week now.

I'm able to open a telnet session to the server - assuming I'm hosting on port 8101, typing telnet localhost 8101 results in opening a connection. I can simply type GET and eventually get back a response:

HTTP/1.1 400 Bad Request
Server: ASP.NET Development Server/9.0.0.0
Date: Thu, 09 Apr 2009 18:45:37 GMT
Content-Length: 1208
Connection: Close

(Actual HTML omitted for brevity. Suffice to say it's a web page saying "Bad Request".)

I've updated my hosts file after discovering an Windows Update messed with it. It has exactly two non-comment lines:

::1             localhost
127.0.0.1       localhost

I've tried using Fiddler to monitor traffic and get "Target machine actively refused the request."

My firewall is turned off (as much as the Domain policy will allow, anyway). I'm running Vista x64 and have IIS 7 installed, and can simply navigate to http://localhost/ and pull up the IIS7 welcome page easily. If I choose to host the web project inside of IIS, it works (except for a couple custom HTTP modules that haven't been updated to work in IIS7, so that's not permanent).

Any other ideas?

EDIT: Tried using FireFox - get this in the address bar:

http://localhost:8080/Error.aspx?k=7b85a233-0459-47ab-9414-20c94350ee0e&

Contents of the page are:

Redirect Loop

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风尘浪孓 2024-07-23 06:11:49

看起来您有一个名为“Error.aspx”的自定义错误页面,但该页面本身会抛出一个错误,导致另一个重定向到“Error.aspx”,因此浏览器陷入重定向循环。 在 IE 中,您只会看到它继续工作,但不会加载任何内容。 听起来 Firefox 检测到了这个问题。

如果您可以远程登录到该端口,那么这不是防火墙问题。

我不认为 Fiddler 问题是相关的。

It looks like you have a custom error page called "Error.aspx", but that page itself throws an error which causes another redirect to "Error.aspx" so the browser gets stuck in a redirect loop. In IE, you'll just see it keep working but never load anything. It sounds like Firefox detected the problem.

If you can telnet to the port then it's not a firewall problem.

I don't think the Fiddler problem is related.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文