Martin Kulov's Blog
VSTS, Oslo, INETA, ASP.NET, Debugging .NET Applications, Tips and Tricks
June 14, 2006
The server committed a protocol violation
Skype nearly got me into screaming this night. I was debugging an ASP.NET 2.0 problem and at some time the IIS started to behave very strange. The debugging in Visual Studio failed with error “Unable to start debugging on the web server. The server committed a protocol violation. Section=ResponseStatusLine” and any attempt to load a page from the local IIS server returned an empty page even for those that did not exist :). At some time (couple of hours lost) I saw in the IIS Management Console that the web site was not running at all. When I tried to start it I got the error
“Unexpected Error 0x8ffe2740 Occurred”
and the long awaited event log entry (there was no entry at the time I tried to start the web site) – Event ID: 115 Description: “The service could not bind instance 1.”. A quick google showed that this error is due to already opened port 80 and the web server just could not open and use that port. Indeed netstat –a showed that port 80 is already opened but there was no way to see who was using it. This is where
TCPView
, marvelous tool from
Sysinternals
, helped a lot (
Update: I just found that netstat –b would display the owning processes of each connection.
). There was Skype listening on port 80, obviously taken ownership of the socket during the number of restarts when I was debugging. How stupid is that?
Attention to all web developers who are using Skype! Make sure to uncheck the option for using port 80 and 443 from Tools\Options\Connection dialog.
#
posted by Martin Kulov @ 3:01 AM
Comments
|
Trackback
<< Home
Calendar
RSS
Martin Kulov's Facebook profile
Recent posts
MSDN Webcast on reliability in SOAP
Google is hiring in Sofia
MCSD, MCTS, MCPD, close the door please
Team System for Database Professionals
WSE and Indigo webcasts
Speaker at INETA - it is official
Viewing generated dataset code
passed exams 548 and 549
Project Noodle
Implement a File Transfer Web Service article
History
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
June 2008
July 2008
August 2008
October 2008
Copyright © 2004-2008 CodeAttest Ltd. All Rights Reserved.