简体   繁体   English

更新服务参考:正在使用端口80

[英]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. 我正在尝试在Visual Studio中更新服务引用,并一直提示说端口'80'正在使用中。 noted things: I'm using IIS Express when running my silverlight program. 注意事项:运行Silverlight程序时,我正在使用IIS Express。 I have checked http://localhost:80 to see what is hijacking port 80 and it returns Not Found. 我检查了http:// localhost:80来查看什么是劫持端口80,并且它返回Not Found。 From win10 resource monitor I see that system is using port 80. No IIS service found running in task manager. 从win10资源监视器中,我看到系统正在使用端口80。未在任务管理器中运行IIS服务。 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. 我也重启了PC和vs几次。

Edit: I have no full IIS installed: When checking from windows features there are nothing checked on internet information services. 编辑:我没有安装完整的IIS:从Windows功能检查时,Internet信息服务上没有任何检查。

Port 80 is usually used by HTTP requests and it is not advisable to use a commonly used port for another service. HTTP请求通常使用端口80,建议不要将常用端口用于其他服务。 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. 有关常用和保留端口的列表,请参见https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

The port numbers in the range from 0 to 1023 are the well-known ports or system ports. 0到1023之间的端口号是众所周知的端口或系统端口。 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). 最终,我发现我已经安装了SQL Server Reporting Service(我什至不应该安装)。 In any case after removing it from the programs updating services where successful. 无论如何,将其从程序中删除后,更新服务都会成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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