今天使用VS2005调试Web程序时报出错误:
Unable to start debugging on the web server. The debug request could not be processed by the server due to invalid syntax.
有几周没调程序了,也记不起来我机器系统环境有啥变化了,试了几个以前正常好用的程序,都是报出同样的错误。IIS也查看了一下,苦思不得其解,后来百度一下,查到了如下微软文章:
BUG:在运行 ASP.NET Web 应用程序时出现“Unable to start debugging on the Web server”(无法在 Web 服务器上启动调试)错误消息
Unable to start debugging on the web server. The debug request could not be processed by the server due to invalid syntax.
有几周没调程序了,也记不起来我机器系统环境有啥变化了,试了几个以前正常好用的程序,都是报出同样的错误。IIS也查看了一下,苦思不得其解,后来百度一下,查到了如下微软文章:
BUG:在运行 ASP.NET Web 应用程序时出现“Unable to start debugging on the Web server”(无法在 Web 服务器上启动调试)错误消息
原来是我先前设置过IIS的默认站点的IP地址,结果导致IIS不认识localhost,从而不能实现VS2005的调试。
把默认站点的IP地址重新设置为默认(All Unassigned)即可正常调试了。