Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kestrel Networking permission denied beta8 version #993

Closed
damienbod opened this issue Oct 16, 2015 · 7 comments
Closed

Kestrel Networking permission denied beta8 version #993

damienbod opened this issue Oct 16, 2015 · 7 comments

Comments

@damienbod
Copy link
Contributor

I'm using ASP.NET 5 beta 8 and since I updated, my application won't start due to the following exception:


Microsoft.AspNet.Server.Kestrel.Networking.UvException: Error -4092 EACCES permission denied
at Microsoft.AspNet.Server.Kestrel.Networking.Libuv.Check(Int32 statusCode)
at Microsoft.AspNet.Server.Kestrel.Networking.Libuv.tcp_bind(UvTcpHandle handle, sockaddr& addr, Int32 flags)
at Microsoft.AspNet.Server.Kestrel.Networking.UvTcpHandle.Bind(String host, Int32 port)
at Microsoft.AspNet.Server.Kestrel.Http.TcpListener.CreateListenSocket(String host, Int32 port)
at Microsoft.AspNet.Server.Kestrel.Http.Listener.<>c__DisplayClass5_0.b__0(Object _)


Any ideas want is causing this or how this can be fixed?

src: https://github.com/damienbod/AspNet5Watcher/tree/updateBeta8

Greetings Damien

@NeelBhatt
Copy link

This might be useful for you:

aspnet/Hosting#364

@damienbod
Copy link
Contributor Author

Hi NeelBhatt

Thanks for your answer. Kestrel is working fine, all my other ASP.NET beta8 applications are running fine from the console or using IIS express in Visual Studio. It's just this application, it has also a HTTP client, and SignalR

Greetings Damien

@davidfowl
Copy link
Member

Maybe the port is in use?

@damienbod
Copy link
Contributor Author

Hi David

Thanks for the tip. I changed the port number and it works. Thanks a million.

"web": "Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:17202"

greetings Damien

@stajs
Copy link

stajs commented Dec 6, 2015

I just hit this too. The stack trace shows it can't bind to the socket, but a better error message in this case would be helpful.

image

@razblack
Copy link

razblack commented Apr 6, 2016

incase anyone else gets this Error -4092

when I setup the IIS i changed the bindings to the port i configured Kestrel to run on and it was throwing this error... I didn't realize IIS would act like a gateway for kestrel and setting a different binding port for IIS worked. I guess this is what they meant by using IIS as a proxy host.

@kspearrin
Copy link

I am having this same IIS Express issue within VS now that I updated to RC2. I have changed port numbers and deleted .vs folder without success. Any ideas? Starting up the application with the Project command works just fine.

natemcmaster pushed a commit that referenced this issue Nov 20, 2018
natemcmaster pushed a commit that referenced this issue Nov 20, 2018
@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants