1. Issue description
I change the IIS 5.1(xp) port from 8080 to 80
(1)The website is is unavailable and has error mark.
got to he event view and find the following error:
The service could not bind instance 1. The data is the error code.
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
(2)when restart the website ,system prompt following error:
Unexpected error 0x8ffe2740 occurred.
2. finding and troubleshooting
I google this error message and find that the iis port are in use by another process.
Use following step to find the process which use 80 port
(1) open cmd and type in netstat -ano|findstr "80"
following are the output
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1376
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 2444
TCP 192.168.47.176:2800 22.214.171.124:1352 ESTABLISHED 3928
(2)type in tasklist|findstr "1376"
following is the output
MsDepSvc.exe 1376 Console 0 13,356 K
The port 80 is used by MsDepSvc.exe.
I rememberd that I install WebDeploy_2_10_x86_en-US.msi to deploy the asp.net mvc application
Note: we can use following command to export port information to a file:
netstat -ano >port_list.txt
1. run services.msc in cmd to open services window
find the "Web Deployment Agent Service" service and stop it.
How to change the port in Web Deployment Agent Service?