What reason would Visual Studio ASP.NET Development Server start returning HTTP 503 errors?

北城余情 提交于 2019-12-22 08:38:24

问题


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.

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:


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) Remove file app_offline.htm from root of your project. It's really generate 503 error with cassini




回答2:


did u tried enabling debugging in your web application?

http://msdn.microsoft.com/en-us/library/e8z01xdh%28v=vs.80%29.aspx




回答3:


One possibility is that some other application is now configured, say, in IIS, to listen on the same port/vdir combination. It might be a port conflict between two site/servers/applications. I would get Fiddler tool to look at response headers and see whether you are getting the response from the server you expect.



来源:https://stackoverflow.com/questions/6631368/what-reason-would-visual-studio-asp-net-development-server-start-returning-http

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!