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
9
votes
3 answers

Response Content-Length mismatch: too few bytes written

My ASP.NET Core app uses "out-of-box" external login authentication. What I want to implement - on facebook challenge I want to wrap redirect url and return it as json to consume in jquery frontend. But after request ends I see 500 error in browser…
9
votes
2 answers

.NET Core / Kestrel Application is shutting down without reason

An existing setup where .net core (2.2) apis are hosted under IIS 7.5 ran smooth and nice so far. Suddenly I experienced that the logs hold the message Application is shutting down... without any indicators of errors or other reasons. I started…
monty
  • 7,888
  • 16
  • 63
  • 100
9
votes
0 answers

Stop IIS decoding %2f in URL

There is an API endpoint in my application that accepts a string as a URL parameter that may contain a / encoded as %2f. For example, GET http://localhost:5000/api/foo/some%2fstring The controller action receives this parameter in its encoded state…
Entith
  • 679
  • 3
  • 15
9
votes
1 answer

ASP.Net Core application service only listening to Port 5000 on Ubuntu

I am trying to host an ASP.Net Core MVC application (https redirection is enabled) on Ubuntu server, using Nginx as a reverse proxy. I have created and installed a local SSL certificate using OpenSSL. When i run my application using dotnet CLI it…
Praveen Rai
  • 777
  • 1
  • 7
  • 28
9
votes
2 answers

BadHttpRequestException due to MinRequestBodyDataRate and poor connection

I have an ASP.NET Core web application that accepts file uploads from authenticated users, along with some error handling to notify me when an exception occurs (Exceptional). My problem is I'm periodically getting alerts of BadHttpRequestExceptions…
Nick Albrecht
  • 16,607
  • 10
  • 66
  • 101
9
votes
1 answer

Cross compile dotnet core app from Windows to Linux

I am working in Windows and want to build a dotnet core app on Windows to run on Linux. In the build folder, I see .DLL file references in the published folder, which would obviously not work on Linux - how do I compile the app from my Windows…
9
votes
2 answers

Why does ASP.NET 5 on Linux require kestrel?

I am trying to understand the entire web/framework/application stack when installing ASP.NET 5 on Linux. All the instructions I have read, including this one haven't really answered my question: Why can't Nginx server work without Kestrel like…
8
votes
1 answer

Kestrel Https certificate identified by appsettings.json only found when running in admin mode

I'm using appsettings.json to configure Kestrel in a .netcore3.1 app. Here's the relevant bits from appsettings.json "Kestrel": { "Certificates": { "Default": { "Subject": "certificate name", "Store": "MY", …
Stephan Steiner
  • 1,043
  • 1
  • 9
  • 22
8
votes
1 answer

Why is dotnet spawning multiple processes on Linux?

I run an asp.net core 3.0 application by dotnet app.dll on Ubuntu 18.04.1 LTS. I see 13 processes of my app. Why does it happen?
Сергей
  • 607
  • 1
  • 7
  • 16
8
votes
1 answer

Multi-endpoint Kestrel configuration with different TLS certificates serves the wrong certificate

I am trying to set up the Kestrel server in an ASP.NET Core MVC-based service app in Linux environment through its appsettings.json config file so that it has exactly two endpoints, both using HTTPS, but each with a different certificate. One…
znovotny
  • 193
  • 2
  • 8
8
votes
5 answers

HTTP Verbs PUT and DELETE: 405 Method not allowed - how to allow?

I've been trying all the suggested workarounds for ASP.NET to be able to address my REST web service by HTTP Methods PUT and DELETE. However, none of them seems to work. (i.e. removing WebDAV handler or allowing all verbs to…
AxD
  • 2,714
  • 3
  • 31
  • 53
8
votes
0 answers

KestrelServerLimits.KeepAliveTimeout

With the following WebHost setup (notice KeepAliveTimeout): return WebHost.CreateDefaultBuilder(args) .UseStartup() .UseKestrel(x => x.Limits.KeepAliveTimeout = TimeSpan.FromSeconds(1)) …
steamrolla
  • 2,373
  • 1
  • 29
  • 39
8
votes
1 answer

The server returned an invalid or unrecognized response error when using System.Net.Http.HttpClient

Recently i have migrated my code base from .net core 1.0 to 2.0 . After that i am getting the error "The server returned an invalid or unrecognized response error when using System.Net.Http.HttpClient" randomly. I am getting this error in 2 out of…
8
votes
0 answers

Recycle of App Pool kills Kestrel but does not restart

Background When hosting a (non-Core) ASP.net site on IIS 8+ it is possible to utilize the IIS Application Initialization Module to pro-actively initialize ('warm-up') a web application when IIS starts up (or, I believe, when an app pool is…
8
votes
0 answers

Error -4077 ECONNRESET connection reset by peer kestrel

I am having the below error in my .net core application Error -4077 ECONNRESET connection reset by peer What does this exactly means ? I have noticed if kept my application in idle state for long time like 1 or 2 hour then this error occurs,…
XamDev
  • 3,377
  • 12
  • 58
  • 97