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

Unable to start Kestrel. Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The specified network password is not correct?

I created a Blazor application and added the following json config in appsettings.json after I created C:\Users\wsn2\Test\Certificates\9Cert.pfx. (https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1) { …
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
4
votes
1 answer

Asp.Net core bug? Blazor/Http.Sys with Windows Authentication shows "The connection was reset"?

Update: Just tried the official example https://github.com/aspnet/AspNetCore.Docs/tree/master/aspnetcore/fundamentals/servers/httpsys/samples/3.x/SampleApp and it doesn't work. Brower message: This site can’t provide a secure connection localhost…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
4
votes
1 answer

Kestrel: An anonymous request was received in between authentication handshake requests?

I created an Kestrel Asp.Net core application and tried to host it on a Windows Server (server1). I launch the application using Browsing http://server1:8008 on server1 works without any error. However, when browsing http://server1:8008 on a remote…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
4
votes
1 answer

WebApi giving 404 whilst debugging; works when published

I have a console application written in .NET Core 2.2.6 that is using Kestrel to host a simple WebApi. public class SettingsController : Controller { // // GET: /settings/ public string Index() { return $"Hello world!…
4
votes
1 answer

Simple routing with web server in netcore console app

I'm having trouble getting routing to work with kestrel. I can't find any good tutorials on how to implement this inside of a netcore console app. I want to build a simple web server that will have 2-3 end-points that I can access. public class…
user3953989
  • 1,844
  • 3
  • 25
  • 56
4
votes
0 answers

How I can handle Kestrel errors?

Kestrel writes logs. Sometimes it's info messages, sometimes - messages with warning/error type. Here is console output: it's common. I would like to catch exceptions to send notification via messenger or email to developer. A fast research gives…
Aleksej_Shherbak
  • 2,757
  • 5
  • 34
  • 71
4
votes
2 answers

How to remove Server Header in Asp.Net Core 2.2.1 Web App?

I'm using Asp.Net Core 2.2.1. I'm trying to remove the server Header from the response. I tried adding options.AddServerHeader = false; inside ConfigureKestrel(), but still unsuccessful. Please assist me on where I'm going wrong. Here is my…
fingers10
  • 6,675
  • 10
  • 49
  • 87
4
votes
0 answers

How to dynamically add/remove additional listen URLs to Kestrel at runtime after server is started?

I want to be able to add/remove ports on the Kestrel listens on after the web server has been started (something you would normally configure via UseUrls method in IWebHostBuilder. I don't want to restart the entire web server in the process as I…
Andrew Stakhov
  • 1,105
  • 8
  • 26
4
votes
1 answer

Certificate issue in Kestrel ssl JSON configuration

Referencing to Kestrel documentation is it possible to configure https using appsettings.json file: "HttpsInlineCertStore": { "Url": "https://+:5002", "Certificate": { "Subject": "", …
Mardok
  • 624
  • 8
  • 18
4
votes
1 answer

Can't access .Net Core 2.1 web app deployed to ubuntu

I have a .NET core 2.1 web app deployed to a VPS (I have root access) running ubuntu 18.04 on nginx. Everything has been smooth until the last time I updated the files on the server, and I don't understand how it stopped working. It runs flawlessly…
ccoutinho
  • 3,308
  • 5
  • 39
  • 47
4
votes
0 answers

Kestrel HTTPS redirect results in no response with debug log "the application completed without reading the entire request body."

I'm just running the API as a console app. If I have app.UseHsts(); app.UseHttpsRedirection(); in my code, when I try to authenticate using Postman I get no response. In Postman I don't have the SSL certificate verification turned on. The Kestrel…
gakera
  • 3,589
  • 4
  • 30
  • 36
4
votes
3 answers

IIS Deployed ASP.NET Core application giving intermittent 431 Request headers too long error

I am working on an ASP.NET Core application which consumes a GraphQL endpoint via RestSharp to retrieve the data. This is an intranet type application, deployed on a Windows 2016 IIS Server and we are utilizing Windows Authentication. The problem we…
Jonas Wik
  • 212
  • 2
  • 11
4
votes
0 answers

IIS Express/Kestrel hangs on OPTIONS request

I have a .NET Core 2.0 project, targeting the full .NET Framework: net461 ... Running on Windows 10, on localhost, using Visual Studio Community…
4
votes
2 answers

Kestrel MaxRequestBodySize uploading file over the limit

I did encounter a wierd problem with kestrel. I am not able to upload the multiple files which exceed the kestrel's MaxRequestBodySize. The expected behaviour is to throw the BadHttpRequestException when I am trying to reader…
Assassin
  • 1,296
  • 2
  • 14
  • 17
4
votes
1 answer

UseKestrel with listen options

I have a problem adding the listen options for my ASP.NET Core solution. I have tried a brand new solution, appending the program.cs to: .UseKestrel(options => { options.Listen(IPAddress.Any, 5000); …
Kasper Sommer
  • 409
  • 1
  • 6
  • 18