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

Cannot override Kestrel RequestSizeLimit in aspnet core

In asp.net core 2 a breaking changed was added that limits the request size to 30 mb (source). In that article, a solution is provided if you would like to overrule the 30 mb limit. This is supposed to be done by adding an attribute to the action…
5
votes
3 answers

DotnetCore content root path is changing when using systemD on Ubuntu16.04

I am currently trying to deploy a DotNetCore app on a Ubuntu16.04 vm on Azure by following this tutorial: https://learn.microsoft.com/en-us/aspnet/core/publishing/linuxproduction After deploying the contents of the folder produced by dotnet publish…
Sherman Szeto
  • 2,325
  • 4
  • 18
  • 26
5
votes
2 answers

running kestrel webserver on .net framework 4.5

how to host the kestrel web server in a application running under .net framework 4.5.x or 4.6.x. Currently I am getting an error saying that "Unable to load DLL 'libuv': The specified module could not be found. (Exception from HRESULT:…
TrustyCoder
  • 4,749
  • 10
  • 66
  • 119
5
votes
1 answer

ASP.NET Core MVC with JSONP

I would like to enable existing MVC controllers (from ASP.NET Core/Kestrel server) to wrap messages as JSONP so they can be accessible cross-domain from browser. What are my options?
Karol Kolenda
  • 1,660
  • 2
  • 25
  • 37
5
votes
1 answer

ECONNRESET connection reset by peer Kestrel

I'm having this error in my Application Insight on Azure: Microsoft.AspNet.Server.Kestrel.Networking.UvException: Error -4077 ECONNRESET connection reset by peer I have read this bug in…
chemitaxis
  • 13,889
  • 17
  • 74
  • 125
5
votes
1 answer

aspnet5 vNext (rc1) iis 8 - bad gateway 502.3

I realize posts like this exist, I've read/re-read and am still having issues. Most are old or not directly related and so I thought I'd re-post w/a current example. Trying to get a basic site running in IIS 8.5+ on win server 2012 R2. At this…
jd314159
  • 365
  • 2
  • 14
5
votes
3 answers

ASP.NET 5 Kestrel connect within LAN

I would like to connect to my Kestrel server with ASP.NET 5 application hosted on it from another PC in the same network. Is it possible? I can ping my computer from cmd, but I get 'Connection timed out' when I try to connect from a web browser (I…
Pavel Rudko
  • 248
  • 2
  • 8
5
votes
0 answers

How to run a Websharper project using .Net Core and Kestrel from OSX or Linux?

I'm trying to run a basic Websharper project right from the console using kestrel minimal server, there is a total lack of documentation. I ran the web project using XSP but I want to test it with the new runtime.
Arkantos
  • 163
  • 1
  • 8
4
votes
2 answers

No more UseMvc() in ASP.NET 6, where to put a Use() call?

I would like requests on different ports (80 and 443 in my case) to be routed to different controllers. I see a suggested technique in this answer, but the code is outdated under .NET 6. UseMvc() is no longer used in the code provided by the…
InteXX
  • 6,135
  • 6
  • 43
  • 80
4
votes
2 answers

Kestrel :: Bind to multiple HTTP and HTTPS urls through appsettings.json

I have a ASP.NET Core service build in .Net 5 which uses Kestrel as edge server. The service needs to listen on multiple domains on HTTP protocol - e.g. http://foo:12912 & http://bar:12912 and HTTPS protocol like http://foo:443 & http://bar:443. I…
Nikhil Agrawal
  • 47,018
  • 22
  • 121
  • 208
4
votes
0 answers

Limit Process Memory Usage

A question related to the .NET process and in this case the dotnet command. Here's the scenario, I'm running various .NET Core web applications on an Ubuntu server using Kestrel - Apache as a reverse proxy following the Microsoft Guide. The question…
ollie10
  • 317
  • 2
  • 11
4
votes
1 answer

Why Kestrel in DotNet Core was born even though we have more speed with InProcess mode?

I read this fantastic article by Rick Strahl. It says Microsoft after DotNet core 2.2 decided to add InProcess Mode to use directly IIS to process request instead of using OutOfProcess which handle process using Kestrel web server. We know that in…
Mohammad
  • 1,197
  • 2
  • 13
  • 30
4
votes
0 answers

Get number of connections in ASP .NET Core 3.1 / Kestrel

I'm putting a limit on the number of concurrent connections to a webapp hosted by Kestrel using an approach like: webBuilder.UseKestrel((context, options) => { options.Configure(context.Configuration.GetSection("Kestrel")); …
Kente
  • 73
  • 6
4
votes
2 answers

Static files not working for AspNetCore web app when referenced from Console App

I would like to be able to to start an AspNetCore web app from a console application. when running the web app the static files load fine I referenced that web app in the console app and added this code, also in the console app: using System; using…
4
votes
2 answers

.NET Core and Kestrel - What should be reverse proxy web server for ASP.NET CORE web api app deployed at linux?

It is advised to use kestrel with a reverse proxy for production for many reasons listed below (documented at microsoft) A reverse proxy can: Can limit the exposed public surface area of the apps that it hosts. Provide an additional layer of…
Sana.91
  • 1,999
  • 4
  • 33
  • 52