Questions tagged [kestrel-http-server]

Kestrel is a HTTP server that is built-in to ASP.NET Core.

Kestrel is an open-source web server based on libuv and developed by Microsoft. The project home is on GitHub.

822 questions
244
votes
4 answers

What is Kestrel (vs IIS / Express)

What is the kestrel web server and how does it relate to IIS / IIS Express? I come from developing apps on IIS Express and hosting them on an IIS web server. With ASP.NET Core I have a dependency on Microsoft.AspNetCore.Server.Kestrel and my startup…
Sean
  • 14,359
  • 13
  • 74
  • 124
129
votes
5 answers

Why does aspnet core start on port 80 from within Docker?

TL;DR: Why does an aspnet core app run on port 80 from within a Docker image, but 5000 outside a docker image. Elaborate I went through the aspnet core / docker tutorial found…
Phillip Scott Givens
  • 5,256
  • 4
  • 32
  • 54
118
votes
12 answers

How do I disable HTTPS in ASP.NET Core 2.1 + Kestrel?

So it appears with the advent of ASP.NET Core 2.1, Kestrel now automatically creates an HTTPS endpoint along side the HTTP one, and default project templates are setup to redirect from HTTP to HTTPS (which is easy enough to undo). However my…
Xorcist
  • 3,129
  • 3
  • 21
  • 47
104
votes
3 answers

Read environment variables in ASP.NET Core

Running my ASP.NET Core application using DNX, I was able to set environment variables from the command line and then run it like this: set ASPNET_ENV = Production dnx web Using the same approach in 1.0: set ASPNETCORE_ENVIRONMENT =…
severin
  • 5,203
  • 9
  • 35
  • 48
104
votes
7 answers

How do I get the kestrel web server to listen to non-localhost requests?

I've deployed my c#, asp.net 5, mvc 6 app to a windows 2008 server. I've fired up dnx web and it is listening to port 5000 and works fine when accessing from local computer. How do I get it to listen to non-localhost requests? P.S. This question…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
77
votes
2 answers

Is Kestrel using a single thread for processing requests like Node.js?

Both Kestrel and Node.js are based on libuv. While Node.js exactly states that it uses an event loop, I can't seem to find if such is the case for Kestrel, or if it utilizes thread pooling / request queue like IIS? Kestrel behind a web…
Norbert Korny
  • 938
  • 1
  • 9
  • 8
72
votes
13 answers

.NET Core app unable to start in IIS due to ErrorCode = '0x80004005 : 80008083

I have a .NET Core application. It runs locally with VS2017 and Kestrel. It runs locally under IIS. However, on the server it fails to start with a 502.5 - Process Failure message. In the event logs I get more detail: Application '...' with…
Keith
  • 150,284
  • 78
  • 298
  • 434
71
votes
8 answers

How to watch for file changes "dotnet watch" with Visual Studio ASP.NET Core

I am using Visual Studio with ASP.NET Core and run the website using just F5 or Ctrl+F5 (not using the command line directly). I would like to use the "dotnet watch" functionality to make sure all changes are picked up on the fly to avoid starting…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
68
votes
1 answer

Which web server are you using in production for ASP.NET Core on a *nix server?

With ASP.NET Core now released, I was wondering what the best hosting option is for Linux and Mac environments. Is there any production grade web server under active development? The only one I'm aware of is Kestrel that ships with the framework.…
reggaemahn
  • 6,272
  • 6
  • 34
  • 59
63
votes
2 answers

How to use HTTPS / SSL with Kestrel in ASP.NET Core 2.x?

I am currently using ASP.NET Core 2.x and I used to be able to get Kestrel to to use HTTPS / SSL by simply putting it in the UseUrls() method like so: var host = new WebHostBuilder() .UseUrls("http://localhost", "https://111.111.111.111") …
Svek
  • 12,350
  • 6
  • 38
  • 69
56
votes
10 answers

Visual Studio 2017 Enable SSL

How do you enable SSL for a project in Visual Studio 2017? In VS15, I could select Project -> Properties -> Debug -> Enable SSL. This option is not available in VS2017. Where has it moved to? Edit: I've even tried editing…
Ashley Bye
  • 1,752
  • 2
  • 23
  • 40
54
votes
8 answers

Setting index.html as default page in asp.net core

How can I get asp.net core to serve an index.html file from inside my wwwroot? The reason I want to do this is because I an developing an angular 4 app using the angular CLI and it takes care of the entire build process. I have set it up to build…
Guerrilla
  • 13,375
  • 31
  • 109
  • 210
48
votes
2 answers

How to get a Console output in ASP.NET Core with IIS Express

ASP.Net Core documentation here has a nice console logging output like in the picture below with colors for various LogLevels. I have now created an application in Visual Studio and I see that it now runs behind IIS Express and I don't see the…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
40
votes
7 answers

Remove "Server" header from ASP.NET Core 2.1 application

Is it possible to remove the Server Response header in a ASP.NET Core 2.1 application (running on Server 2016 with IIS 10)? I tried putting the following in the web.config:
40
votes
2 answers

Increase upload request length limit in Kestrel

I am running an ASP.NET Core web app and want to upload large files. I know that when running IIS, the limits can be changed via web.config: ... How…
1
2 3
54 55