- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我能够在我的本地服务结构集群上成功运行我的 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.
关于c# - Microsoft.Net.Http.Server.WebListenerException (0x80004005) : The prefix 'https://+:44384/' is already registered,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45086038/
我是一名优秀的程序员,十分优秀!