什么原因会使Visual Studio ASP.NET开发服务器开始返回HTTP 503错误? [英] What reason would Visual Studio ASP.NET Development Server start returning HTTP 503 errors?

查看:229
本文介绍了什么原因会使Visual Studio ASP.NET开发服务器开始返回HTTP 503错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个网站已经有几个星期了,大多数日常工作只是在创建带有母版页的新Web表单。一直以来,我一直在使用ASP.NET开发服务器来查看对项目的添加,但是今天(看似无处不在)服务器一直在返回HTTP 503错误。我尝试重新启动VS,然后重新启动工作站,然后确保在我的工作站上启用了绕过本地地址代理,但无济于事。之前有人遇到过这种行为吗?有人对我可以审查的日志有建议吗?

I've been putting together a website for a few weeks, most of the routine has just been creating new web forms with master pages. I've been using the ASP.NET Development Server to view my additions to the project as I've gone along, but today (seemingly out of nowhere) the server has been returning HTTP 503 errors. I tried restarting VS, then restarting workstation, then making sure that "bypass proxy for local addresses" was enabled on my workstation, but to no avail. Has anyone encountered this behavior before or does anyone have suggestions on logs I can review to investigate? Thanks in advance.

更新:使用telnet时,服务器返回看起来像ASP.NET服务器页面的标记,并列出HTTP错误400-错误请求。

Update: When using telnet, the server returns the markup for what looks to be an ASP.NET server page, listing an HTTP Error 400 - Bad Request. Still getting a 503 in Google Chrome and blank pages in Firefox and Internet Explorer.

推荐答案

1)在Google Chrome浏览器中仍然显示503,在Firefox和Internet Explorer中显示空白页面。1)也许网络中有错误。配置,因此卡西尼语无法理解。尝试发布网站并使用普通的IIS运行它。

1) Maybe there is errors in web.config, so cassini can't understand it. Try to publish website and run it with normal IIS

2)从项目根目录中删除文件app_offline.htm。卡西尼号确实会产生503错误

2) Remove file app_offline.htm from root of your project. It's really generate 503 error with cassini

这篇关于什么原因会使Visual Studio ASP.NET开发服务器开始返回HTTP 503错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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