1

Ich konnte meine asp.net Core Web App erfolgreich auf meinem lokalen Service-Fabric-Cluster ausführen seit einiger Zeit bei https://localhost:44384. Aber jetzt habe ich die Fehlermeldung "'https://+:44384/' ist bereits registriert" angezeigt und meine Anwendung wird das Browserfenster nicht starten. Auf meinem lokalen Computer verwende ich diesen Port 44384 nicht für andere Apps. Warum bekomme ich die obige Fehlermeldung? Selbst wenn ich den Port auf eine andere Nummer ändere, bekomme ich immer noch die gleiche Fehlermeldung, in der der Smae-Port angezeigt wird. Die Fehlermeldung "https://+:44384/" ist bereits registriert.Microsoft.Net.Http.Server.WebListenerException (0x80004005): Das Präfix "https: // +: 44384 /" ist bereits registriert

Haben Sie Vorschläge, diesen Fehler zu beheben?

Fehlermeldung:

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()

Antwort

3

Ich vermute, Sie laufen eine fünf Knoten Entwicklungscluster. (Vielleicht war das vorher ein 1-Knoten-Cluster?). Wenn dies der Fall ist, treten beim Bereitstellen von Diensten für diese Knoten Probleme auf, da sie alle den gleichen Netzwerkstapel verwenden. Lösung:

Deploy 1 Instanz Ihres Web-App - Service vor Ort

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

0

Sie sollen mit der PID nichts mit diesem Hafen sehen wie sein:

netstat -a -n -o

Verwandte Themen