J'essaye d'exécuter un site Web simple sur bash sur Windows (bash de mise à jour d'anniversaire de Windows) mais j'ai été jusqu'ici sans succès.Exécuter Kestrel sur bash sur windows
Je suis en mesure de créer et exécuter l'application de la console, mais chaque fois que je tape
dotnet run
sur un projet Web, je reçois:
Unhandled Exception: System.AggregateException: One or more errors occurred. (Error -98 EADDRINUSE address already in use) ---> Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvException: Error -98 EADDRINUSE address already in use
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.Check(Int32 statusCode)
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvTcpHandle.GetSockIPEndPoint()
at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.TcpListenerPrimary.CreateListenSocket()
at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.Listener.<>c.<StartAsync>b__6_0(Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Internal.Http.ListenerPrimary.<StartAsync>d__11.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.CreateServer(ServerAddress address)
at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext](IHttpApplication`1 application)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start()
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host, CancellationToken token, String shutdownMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at WebApplication.Program.Main(String[] args)
Quelqu'un at-il réussi à ce sujet? Est-ce que je demande trop de cette version "dépouillée de la version bêta de Linux"?
EDIT:
Pour reproduire le comportement, sur une bash fenêtre d'invite de type I:
mkdir mytestwebsite
cd mytestwebsite
dotnet new -t web
dotnet restore
dotnet run
et le problème apparaît.
peut-être que vous pouvez donner aux lecteurs experts du code pour travailler avec, comme, vous dites "ça ne fonctionne pas" à mon humble avis. Avez-vous lu http://stackoverflow.com/help/mcve? Bonne chance. – shellter
merci @shellter, édité – mCasamento
On dirait que ce port est déjà utilisé. – ManoDestra