简体   繁体   中英

Updating service reference: port 80 in use

I'm trying to update service references in Visual studio and prompt keeps saying Port '80' is in use. noted things: I'm using IIS Express when running my silverlight program. I have checked http://localhost:80 to see what is hijacking port 80 and it returns Not Found. From win10 resource monitor I see that system is using port 80. No IIS service found running in task manager. I can start the service and use it normally just without the service reference update. I have also restarted both pc and vs for several times.

Edit: I have no full IIS installed: When checking from windows features there are nothing checked on internet information services.

Port 80 is usually used by HTTP requests and it is not advisable to use a commonly used port for another service. It would be better to choose a port that is not in use by any other program/service and is not used/reserved for anything. See https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers for a list of commonly used and reserved ports.

The port numbers in the range from 0 to 1023 are the well-known ports or system ports. They are used by system processes that provide widely used types of network services

Don't choose any of them to avoid problems for your users. So if you have control of the service, change port to something else and it should work.

Eventually I found out I had SQL Server Reporting Service installed (which I shouldn't even have had). In any case after removing it from the programs updating services where successful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM