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
30
votes
5 answers

IIS vs Kestrel performance comparison

How does the performance of IIS look like comparing to a Kestrel http server? Seems like Kestrel is significantly inspired by the family of asynchronous and event-driven server frameworks. In the meantime, IIS has a long history of development and…
madcyree
  • 1,427
  • 3
  • 15
  • 28
28
votes
6 answers

Removing Kestrel binding warning

When using Kestrel in an ASP.NET Core 2.1 project and specifying a binding in UseKestrel(), a message is logged at warning level: Overriding address(es) 'http://localhost:50000/'. Binding to endpoints defined in UseKestrel() instead. This adds…
nullPainter
  • 2,676
  • 3
  • 22
  • 42
28
votes
2 answers

Getting ASP.Net Core shutdown triggering ApplicationStopping event in IISExpress

I'm aware there is a previous question on this, also there is a GitHub issue: https://github.com/aspnet/Hosting/issues/846 which appears to be resolved as of Microsoft.AspNetCore.Server.IISIntegration 1.1. However despite having this version, this…
James Ellis-Jones
  • 3,042
  • 21
  • 13
27
votes
3 answers

HTTP.sys vs Kestrel: Why choose one over the other? Pros Cons?

What is the reason for two separate but similar servers? What are the differences? Can I run both in docker? Do both support same things, like all authentication types?
jjaskulowski
  • 2,524
  • 3
  • 26
  • 36
26
votes
1 answer

Configure ASP.NET Core 2.0 Kestrel for HTTPS

TL;DR What is today the correct way to setup HTTPS with ASP.NET Core 2.0? I would like to configure my project to use https and a certificate like they have shown at BUILD 2017. I have tried several settings but nothing worked. After some research,…
VSDekar
  • 1,741
  • 2
  • 21
  • 36
24
votes
5 answers

Enable both Windows authentication and Anonymous authentication in an ASP.NET Core app

I know that this has been asked many times before, but unfortunately not about ASP.NET Core web apps, just the classic ASP.NET web apps. All the answers i've found on the internet don't help me, because the IIS configuration of ASP.NET Core apps is…
ashilon
  • 1,791
  • 3
  • 24
  • 41
24
votes
1 answer

Running first ASP.NET 5 application using VSCode, DNX and kestrel results in IOException

Following the steps described in the Visual Studio Code documentation, running the final command dnx . kestrel via the Command Palette of VSCode on Mac OS X results in an IOException when visiting http://localhost:5001: kqueue() FileSystemWatcher…
hwschuur
  • 1,101
  • 2
  • 13
  • 17
23
votes
1 answer

Kestrel on AspNet vNext doesnt serve index page under /

I need to be able to serve my 'index.html', under the default url /, using Kestrel web server. Right now I'm only able to access my static files with the full path i.e /index.html Again this works perfectly on VisualStudio, the context is OSX with…
22
votes
1 answer

Is reverse proxy actually needed on ASP.NET core?

We're wondering if reverse proxy is actually required for most use cases and would appreciate additional information. The Kerstel/Nginx documentation claims: Kestrel is great for serving dynamic content from ASP.NET Core. However, the web serving…
22
votes
2 answers

Failed to Authenticate HTTPS connection when attempting GET from WebAPI

I am using ASP.NET Core. I have two projects: ASP.NET Core MVC application ASP.NET Core Web API application If I attempt to access one of the Web API endpoints using Postman, I do not have any issues; the /api/values endpoint returns as expected.…
pieperu
  • 2,662
  • 3
  • 18
  • 31
21
votes
2 answers

How to troubleshoot thread starvation in ASP.NET Core on Linux (Kubernetes)?

I'm running an ASP.NET Core API on Linux, on Kubernetes in the Google Cloud. This is an API with high load, and on every request it's executing a library doing a long (1-5 seconds), CPU-intensive operation. What I see is that after deployment the…
Mark Vincze
  • 7,737
  • 8
  • 42
  • 81
21
votes
2 answers

Stop a running dotnet core website running on kestrel

When deploying a new version of an existing .net core website. How do I first safely stop the old running kestrel app? Here is an exmaple of what I would like to write (Pseudo deployment script): dotnet stop mysite/mysite.dll <---- this line here mv…
Craigt
  • 3,418
  • 6
  • 40
  • 56
20
votes
3 answers

Windows Authentication for Kestrel hosted in Windows service

I am running an ASP.NET Core application hosted in a Windows service as described here: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-2.1 I need this application to support Windows Authentication. What…
Sandy
  • 1,284
  • 2
  • 14
  • 32
20
votes
3 answers

ASP.NET Core 2.1 Invalid Request Line Issue

Our Linux Docker ASP.NET Core container server logs are getting filled by the following 'Informational' log entries since we've updated from .NET Core 2.0 to .NET Core 2.1 (SDK 2.1.302): INFO|Microsoft.AspNetCore.Server.Kestrel|Connection id…
Yang
  • 483
  • 1
  • 5
  • 9
20
votes
3 answers

.Net Core behind NGINX returns 502 Bad Gateway after authentication by IdentityServer4

Having two applications auth and store and authenticating using IdentityServer4 and both are behind NGINX. The store application successfully authenticates but after coming back from the auth application we get 502 Bad Gateway from NGINX. Any idea…
Babak
  • 3,716
  • 6
  • 39
  • 56
1
2
3
54 55