Today for the first time since I had rebuilt my home machine something I was developing accessed my local IIS 5.1 instance (running in Windows XP sp2). Normally I would use IIS very often but recent events have kept me away from web development.
In this particular case I was not even doing real web development, instead I was experimenting with the Publish feature for ClickOnce publishing options of Windows Applications. Something seemed odd as trying to publish would lock up Visual Studio, so I decided to investigate if IIS was even working properly.
I entered Internet Information Services MMC and noticed IIS was not started. I attempt to do so manually and got this error:
Unexpected error 0x8ffe2740 occurred.
My gut told me, something must be running in Port 80. From experience strange errors in IIS tend to be related to such a problem (as two applications cannot run on the same local port due to binding issues).
As my next step to confirm this I entered the event log viewer and found the following problem reporting by W3SVC (W3SVC is IIS), here is a screenshot:
Notice the words "service could not bind instance 1", this confirmed what I had suspected. I immediately went into web site properties and changed port 80 to 81. The service now started just fine.
To be thorough with my assumptions I also Googled the original message and found the following KB article that supports my thoughts behind this problem, here is a link:
http://support.microsoft.com/kb/816944
Tomorrow I will spend a few minutes and figure out what has taken over port 80 as id like it back for IIS.
