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
0
votes
0 answers

Retry port binding with Kestrel and ASP.Net Core

We are creating a Windows service using ASP.Net Core and Kestrel. This service must bind to a specific port. To start the service we use the following code. public static async Task Main(string[] args) { CreateHostBuilder(config,…
Laurens
  • 325
  • 2
  • 12
0
votes
2 answers

How do I enable IFormFeature in ASP.Net / Kestrel?

I want to process multi-part file uploads, so in my handler I get the IFormFeature like this: var formFeature = ctx.Features.Get() However, it is always null. My request looks like this: curl -v -X POST -H "Content-Type:…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
0
votes
1 answer

What the difference between "Urls" and "Endpoints" in Kestrel settings?

In ASP Net core web application, you can set which URL the application will listen in two different ways inside the appsettings.json: 1) { "Kestrel": { "Endpoints": { "Http": { "Url": "http://localhost:9999" } } …
natenho
  • 5,231
  • 4
  • 27
  • 52
0
votes
1 answer

403 Forbidden In Asp.Net Core app with Apache

I'm new with .Net Core and Linux but I'm trying to deploy my MVC app(working well on windows) to Centos with Apache as Reverse Proxy. For now my app is running(as a Kestrel service) and here is Apache virtual host configuration:
Gleb
  • 1,412
  • 1
  • 23
  • 55
0
votes
1 answer

How to create urls for .NET Core application in Apache virtual directory

ASP.NET Core application is created using Visual Studion 2019 ASP.NET Core Application project template. Its _layout.cshtml contains css file paths relative to application root directory:
Andrus
  • 26,339
  • 60
  • 204
  • 378
0
votes
0 answers

Asp core doesn't enforce client certificate

I have an API app created using asp core. I'm trying to enforce use of client certificates as described here. I did tell Kestrel to require certificates in Program.cs: webBuilder.ConfigureKestrel(o => { o.ConfigureHttpsDefaults(o =>…
0
votes
0 answers

Select certificate based on Host header in Kestrel

I am trying to select the appropriate SSL certificate to use in a self hosted Kestrel server. The following code works fine for a DNS entry, but not for either an IP address or when the Host, or X-Forwarded-For headers are…
0
votes
1 answer

What is the purpose of IWebHostBuilder.PreferHostingUrls

I know what the documentation says, but I do not know where the IServer gets introduced or how it is configured. My specific case is that I am calling IHostBuilder.ConfigureWebHost (not ConfigureWebHostDefaults), which as best I can determine does…
0
votes
0 answers

Relative and absolute path problems in .net core app when published

I have got this problem with a program when I publish it to the server, the problem arises because it is published to a folder on the server rather than the root. In the pages there are bits of code like this in the .cshtml files @section head…
Dennis
  • 373
  • 1
  • 6
  • 21
0
votes
0 answers

SignalR returns "Connection ID required" when ran in an AWS ECS container

I am trying to get a .Net Core 3.1 SignalR Web API with an Angular front end to work with websockets. The code works perfectly fine when ran locally, either from within in the IDE or via docker run. However, once the code gets deployed to an ECS…
0
votes
0 answers

Kerberos How To Delegate On Behalf Of Users AND Access Resources Independent Of Users

I have a webapp running on Linux that uses Delegation to effectively mirror the permissions of the User that makes requests. The webapp uses a keytab that looks something like this: KVNO Timestamp Principal ---- -----------------…
Howard_Roark
  • 4,088
  • 1
  • 14
  • 24
0
votes
0 answers

ASP.NET Core 3.1 slow responses

I have a standard ASP.NET Core 3.1 API application, which uses MVC controllers. The code is pretty straightforward, from the controller the code makes a query to MongoDb to retrieve a document. This is fast and pretty much okay. However, when I…
gdyrrahitis
  • 5,598
  • 3
  • 23
  • 37
0
votes
1 answer

ASP.NET Core startup message log

I have an ASP.NET Core 3.1 app, which was upgraded from ASP.NET Core 2.0. We would like to get the old startup messages ("Now listening on: http://localhost:5000", etc) to log through the configured structured logging options. This works out of the…
superstator
  • 3,005
  • 1
  • 33
  • 43
0
votes
1 answer

Using PEM format certificate in .net core 3.1 on Ubuntu server

everyone I've read this issue and found there is support for PEM format certificate in .net core 3.x. I'm trying to use that but I'm not successful. I can not find any sample code on how to use that. what I have is something like this: …
someone
  • 535
  • 4
  • 14
0
votes
0 answers

Upgrade Asp.Net Core 2.2 to 3.1 Failed to authenticate HTTPS connection

I've upgraded solution from 2.2 to 3.1. It consists of several projects (APIs). They all use Kestrel and HTTPS. After the upgrade I cannot call one service from another (by using HttpClient) and I cannot reroute them by using Ocelot, when i run…
draxtor
  • 104
  • 6