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
19
votes
2 answers

Azure Key Vault Certificates does not have the Private Key when retrieved via IKeyVaultClient.GetCertificateAsync

I have 2 approaches to do the same thing, but Azure has deprecated the one that works, and the other method doesn't work. The approach that works, but is deprecated: I store my PFX in Azure Key Vault Secrets. (when I create the secret I see a…
Nandun
  • 1,802
  • 2
  • 20
  • 35
18
votes
2 answers

Appropriate Kubernetes Readiness and Liveness Probes for Kestrel .NET Core Web API

Our aim is to horizontally scale a .NET Core 2.0 Web API using Kubernetes. The Web API application will be served by Kestrel. It looks like we can gracefully handle the termination of pods by configuring Kestrel's shutdown timeout so now we are…
18
votes
1 answer

Is there a way to get the time spent in request queue in Kestrel/ASP.NET Core?

My understanding is that ASP.NET Core middleware is run when a request is ready to be processed. But if the app is under load and ASP.NET Core can not process all the requests as they come in, they are put in a "queue" somewhere? I don't know…
ChrisBellew
  • 1,144
  • 2
  • 12
  • 27
17
votes
4 answers

Kestrel with IIS - libuv.dll missing on run

We're setting up an existing Web API server to serve site(s) alongside an existing API. I have been loosely following this article. Here's what my Global.asax.cs looks like: public class WebApiApplication : System.Web.HttpApplication { protected…
Scotty H
  • 6,432
  • 6
  • 41
  • 94
17
votes
2 answers

ASP.NET 5, DNX & Kestrel: Not hitting breakpoints

Breakpoints are not being hit when debugging our DNX projects referenced in a ASP.NET 5 API project hosted with Kestrel (all in the same solution and in the src folder). Debugging with IIS Express works fine. What troubleshooting steps can be taken…
Dave New
  • 38,496
  • 59
  • 215
  • 394
16
votes
3 answers

How to use PEM certificate in Kestrel directly?

I want to use HTTPS in my ASP.Net Core 2.0 (with Kestrel web server) application. The official documentation uses pfx format, but I want to use PEM format (generated from Let's encrypt) directly without any conversion (at least nothing outside my…
16
votes
1 answer

Thread management in asp.net core / kestrel

I'm troubleshooting performance / scalability issues with an asp.net app we've migrated to asp.net core 2.0. Our app is hosted on azure as an app service, and is falling over far too easily with any moderate traffic. One thing that's puzzling me is…
16
votes
4 answers

How to host a asp .net core application under a sub folder

I have a asp .net core app running on Linux using Kestrel. It binds to the ip ok on port 80. But the nginx reverse proxy site needs to host the app under a non-root path e.g. http://somesite.com/myapp So this is ok, the app loads, but the app does…
ScottC
  • 1,307
  • 1
  • 13
  • 11
16
votes
4 answers

Can I set listen URLs in appsettings.json in ASP.net Core 2.0 Preview?

I'm creating an ASP.net Core 2.0 app to run on the .net Core 2.0 runtime, both currently in their Preview versions. However, I cannot figure out how to have Kestrel use something other than the default http://localhost:5000 listen URL. Most…
Henry
  • 272
  • 1
  • 2
  • 7
16
votes
4 answers

How to Run a .NET Core MVC Site on AWS Linux Instance

I would like to run a .NET Core MVC website from an AWS Amazon Linux AMI instance. Here are the steps I have taken so far: Create a template ASP.NET Core Web Application (.NET Core) - C# - MVC Web Application project in Visual Studio 2015. Compile…
Bruno L.
  • 391
  • 8
  • 16
15
votes
2 answers

Increase upload file size in Asp.Net core v3.1

I'm trying to upload multiple files in my .NET Core v3.1 Blazor application, but I can't get passed the 30MB limit. Searching for this I found Increase upload file size in Asp.Net core and tried the suggestions but it doesn't work. All found…
15
votes
4 answers

Check if hosting server is IIS or Kestrel at runtime in aspnet core

I'm currently running my application under either Kestrel (locally) or IIS InProcess (production). return WebHost.CreateDefaultBuilder(args) .ConfigureKestrel(options => options.AddServerHeader = false) .UseIIS() …
Charlie
  • 393
  • 3
  • 10
15
votes
5 answers

How to determine which port ASP.NET Core 2 is listening on when a dynamic port (0) was specified

I've got an ASP.NET Core 2.0 app which I intend to run as a stand-alone application. The app should start up and bind to an available port. To achieve this I configure the WebHostBuilder to listen on "http://127.0.0.1:0" and to use the Kestrel…
Christo
  • 1,802
  • 4
  • 20
  • 31
15
votes
1 answer

HttpRequest not aborted (cancelled) on browser abort in ASP.NET Core MVC

I wrote the following MVC Controller to test cancellation functionality: class MyController : Controller { [HttpGet("api/CancelTest")] async Task Get() { await Task.Delay(1000); CancellationToken token =…
14
votes
1 answer

How to resolve Heartbeat took longer than "00:00:01" failure?

I have a .NetCore C# project which performs an HTTP POST. The project is set up in Kubernetes and I've noticed the logs below: Heartbeat took longer than "00:00:01" at "02/22/2020 15:43:45 +00:00". warn: Microsoft.AspNetCore.Server.Kestrel[22] …
1 2
3
54 55