Questions tagged [kestrel]

Kestrel is a simple, distributed message queue system written in Scala.

Kestrel is a simple, distributed message queue system written in .

There is also Kestrel a cross platform web server for ASP.NET Core. If your question is addressing the web server you can use

364 questions
220
votes
27 answers

Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found

I am working on a fabric application where I have configured HTTPS. It is throwing an exception though I have a valid installed certificate.
Balanjaneyulu K
  • 3,660
  • 5
  • 24
  • 45
116
votes
3 answers

Access environment name in Program.Main in ASP.NET Core

Using ASP.NET Mvc Core I needed to set my development environment to use https, so I added the below to the Main method in Program.cs: var host = new WebHostBuilder() .UseContentRoot(Directory.GetCurrentDirectory()) …
Mike Lunn
  • 2,310
  • 3
  • 21
  • 24
35
votes
5 answers

Using appsettings.json to configure Kestrel listen port Dotnet core 2 preview 2

From what I understand the correct way of setting listen ports for ASP Dotnet Core 2 preview 1/2 is by creating a Kestrel section in the appsettings.json in the following format: "Kestrel": { "EndPoints": { //Could also be Endpoints, it's a bit…
Niklas Gislum
  • 353
  • 1
  • 3
  • 5
28
votes
1 answer

Is kestrel for asp.net core application production ready?

I have an api used by my angular application developed in asp.net core 2.0 Its been deployed in IIS and configured to use kestrel. I read Kestrel is not safe when exposing the application publicly and more. Is that true? Is kestrel still not ready…
Hemanth Bidare
  • 623
  • 1
  • 7
  • 15
22
votes
4 answers

How to properly stop running dotnet core web application?

In Visual Studio 2017 and 2019 on Windows, I run dotnet watch run in the Package Manager Console. It launched kestrel for a dotnet core app, automatically disabled text edit in the console, and displayed a red button to stop command execution, but…
19
votes
1 answer

Kestrel vs IIS+Kestrel (reverse proxy) vs Nginx

When I researched hosting of .NET core mechanism I saw this comment at lots of forums and website "Microsoft suggests always using any web server in front of Kestrel for websites." Why? Because of security problem? I suprised because if kestrel is…
Kle
  • 1,003
  • 2
  • 14
  • 24
17
votes
1 answer

What's the difference between HttpContext.RequestAborted and CancellationToken parameter?

I'm trying to create an async view component for ASP.NET Core 2.0. It will do an action that should be cancelled when the user navigates away from the page. I've got the following options: Using the HttpContext.RequestAborted Using a…
Kees C. Bakker
  • 32,294
  • 27
  • 115
  • 203
13
votes
3 answers

Asp.Net Core Web API app: how to change listening address?

I write simple Asp.Net Core WebAPI 2.0 application, it works on my local machine. But i want to deploy it to server. So, i do it. My system: Ubuntu 16.04. Asp.Net WebAPI 2.0 (and dotnet version 2.1.105) But, when app starts it writes: Now…
13
votes
1 answer

High thread count stuck in GCFrame causes high CPU usage

We have an application that uses Kestrel to serve HTTP requests. We've had some problems in the past where high load caused the thread pool to spawn thousands of threads, at which point we would get lock convoy symptoms. Most of the time, the…
DukeOf1Cat
  • 1,087
  • 15
  • 34
11
votes
1 answer

register Web API controller from class library

I have a .NET Core worker project and want to add a library providing several HTTP endpoints. I have to stay with the worker project, I can't change it to a Web API project. What I have done so far: I created a worker project I created a library…
user13755987
11
votes
3 answers

Make ASP.NET Core server (Kestrel) case sensitive on Windows

ASP.NET Core apps running in Linux containers use a case sensitive file system, which means that the CSS and JS file references must be case-correct. However, Windows file system is not case sensitive. Therefore during development you can have CSS…
Paymon
  • 1,173
  • 1
  • 9
  • 26
11
votes
1 answer

IHostedService Stop without any reason

Could anyone explain to me why my server stopped for no reason? below my IHostedService implementation: public class HostServiceBox : IHostedService { public Task StartAsync(CancellationToken cancellationToken) { …
btbenjamin
  • 593
  • 7
  • 19
10
votes
1 answer

How can I change Kestrel (AspNetCore) listening port by environment variables in netcore3.1

I have aspnetcore3.1 project, and I want to set custom port for Kestrel (other than default 5000). I can possibly do it in Program.cs by adding Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { …
10
votes
5 answers

How can I know when Kestrel has started listening?

I need to notify systemd that my service has started up successfully, and a task it needs to run after startup requires that the server is already listening on the target Unix domain socket. I am using IWebHost::Run to start the server, and that is…
aremmell
  • 1,151
  • 1
  • 10
  • 15
9
votes
2 answers

app.UseDefaultFiles in Kestrel not doing anything?

I have this in a Startup.cs file for a small project for a webserver hosting static files with Kestrel: public class Startup { public void ConfigureServices(IServiceCollection services) { services.Configure(options => …
user8639269
1
2 3
24 25