asp.net – 为什么在调试我的Web应用程序时得到“服务器提交了一个协议违反Section-ResponseStatusLine”?

我有一个.NET 1.1解决方案,其中所有项目都升级到.NET 4.0(VS2010,Windows 7)。为了让我的“无法启动Web服务器上的调试”问题,我将Web应用程序属性切换为使用VS Development Server而不是IIS。

调试Web应用程序时,启动OK。但是当我打到一个我称之为本机的Web服务的行时,我收到上面的错误。我看到有关添加useUnsafeHeaderParsing = false的内容,但是我的web.config没有一个sytem.net部分。

是否无法在应用程序开发服务器上同时服务Web服务和Web应用程序?我需要正确配置才能使用IIS7吗?作为一个长期的IIS6用户,只是看着它使我的头旋转…虽然,我有网站和网络服务设置在其中,我相当确定它一次工作。有爱

解决方法

这对我有用:下面的文本是从 This CodePlex Post开始的

This error usually occurs when you have set up Visual Studio to debug
an existing web application running in IIS rather than the built in
ASP.NET debug web server. IIS by default listens for web requests on
port 80. In this case,another application is already listening for
requests on port 80. Typically,the offending application is Skype,
which by default takes over listening on ports 80 and 443 when
installed. Skype is already occupy the port 80. So IIS is unable to
start.

To resolve the issue follow the steps:
– Skype -> Tools -> Options -> Advanced -> Connection:
– Uncheck “Use port 80 and 443 as alternatives for incoming connections”.

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....