gpt4 book ai didi

c# - Microsoft.Net.Http.Server.WebListenerException (0x80004005) : The prefix 'https://+:44384/' is already registered

转载 作者:太空宇宙 更新时间:2023-11-03 22:56:37 27 4
gpt4 key购买 nike

我能够在我的本地服务结构集群上成功运行我的 asp.net 核心 Web 应用程序一段时间 https://localhost:44384 .但是现在我开始看到错误消息“'https://+:44384/' 已经注册”并且我的应用程序不会启动浏览器窗口。在我的本地计算机上,我没有将此端口 44384 用于任何其他应用程序。那么为什么我会收到上述错误消息?即使我将端口更改为其他号码,我仍然会收到相同的错误消息,其中提到 smae 端口错误消息“‘https://+:44384/’已注册”。

有什么解决此错误的建议吗?

错误信息:

Microsoft.Net.Http.Server.WebListener: Information: Listening on prefix: https://+:44384/ Microsoft.Net.Http.Server.WebListener: Error: Start

Microsoft.Net.Http.Server.WebListenerException (0x80004005): The prefix 'https://+:44384/' is already registered. at Microsoft.Net.Http.Server.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId) at Microsoft.Net.Http.Server.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup) at Microsoft.Net.Http.Server.WebListener.Start() Microsoft.Net.Http.Server.WebListener: Error: Start

Microsoft.Net.Http.Server.WebListenerException (0x80004005): The prefix 'https://+:44384/' is already registered. at Microsoft.Net.Http.Server.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId) at Microsoft.Net.Http.Server.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup) at Microsoft.Net.Http.Server.WebListener.Start() Microsoft.Net.Http.Server.WebListener: Error: Start

Microsoft.Net.Http.Server.WebListenerException (0x80004005): The prefix 'https://+:44384/' is already registered. at Microsoft.Net.Http.Server.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId) at Microsoft.Net.Http.Server.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup) at Microsoft.Net.Http.Server.WebListener.Start()

最佳答案

我怀疑您正在运行一个五节点开发集群。 (也许这是一个 1 节点集群之前?)。如果是,那么在向这些节点部署服务时就会遇到麻烦,因为它们都使用相同的网络堆栈。解决方案:

部署您的网络应用程序的 1 个实例 - 本地服务

when you run a web service locally, you need to ensure that only one instance of the service is running. Otherwise, you run into conflicts from multiple processes that are listening on the same path and port. As a result, the web service instance count should be set to "1" for local deployments.

more info here

and here

关于c# - Microsoft.Net.Http.Server.WebListenerException (0x80004005) : The prefix 'https://+:44384/' is already registered,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45086038/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com