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
1 answer

Service Fabric Kestrel 3.1 Https certificate through load balanser

Using Fabric 2 stateless services with Kestrel 3.1 Have a problem exposing a HTTPS endpoint. A primary certificate is defined on the cluster (Security section). This certificate (primary) is accessible to the nodes (i.e. via X509Store find…
0
votes
0 answers

High load ASP.NET application running as Windows Service not stopping

An asp.net application (running on Kestrel) running as a Windows Service has trouble stopping during high load. The setup: [...] var config = WebHostBuilderHelper.GetConfig(); var hostBuilder = new…
gwow12345
  • 311
  • 3
  • 12
0
votes
1 answer

Suddenly NLog contains ReadAsync and WriteAsync HTTP log entries

Our software suddenly started logging the complete HTTP Headers, filling up the log files [08:32:53.5245][Debug]ReadAsync[642] 47 45 54 20 2F GET / HTTP/1.1 Host: localhost:4432 Connection: keep-alive [08:32:53.5245][Debug]WriteAsync[201] 48 54 54…
Erik Oppedijk
  • 3,496
  • 4
  • 31
  • 42
0
votes
0 answers

Dotnet Core application thinks it's still running when Chrome window is still open

I have a asp.net core 2.1 application that uses Kestrel to setup a web server. To improve user experience, when the application is started, I also start Chrome. But lately, I've been getting this error while debugging: System.IO.IOException: Failed…
0
votes
0 answers

How to configure Kestrel web server to use my production server's ip address?

Currently I am running dotnet core mvc 3.1 on a Ubuntu server. When I run the application I see this: ./MyApp.Web ASPNETCORE_ENVIRONMENT=Production ASPNETCORE_URLS=http://1.2.3.4/ info:…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
0
votes
1 answer

Simple hosting of a .NET Core Web API Service (Similar to NodeJs)

I have a .Net Nuget Package that works on a .NET Core Web API Service when it is proxied by my API Management Server. I would like to setup some automated testing of this service to be run when I run my builds. Normally, when I want to run a…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
0
votes
1 answer

.NET Core - Properly stopping Kestrel

Community, I want to gentle stop Kestrel and a running .Net Core app to make it completes existing queries, prevent it from handle new queries and when all existing queries are done - stop the app and Kestrel. I need it to setup CI/CD in Kubernetes,…
0
votes
1 answer

Configure Kestrel Razor pages to be like PHP

I use PHP for simple web pages. I use C# for a lot of non web programming, and have a lot of custom libraries. I have been trying Razor pages with Kestrel using the ASP .Net core template in Visual studio, and I was expexting to have something like…
0
votes
1 answer

Start 2 webservers in c#

Is there a way to start 2 web app projects simultaneously? Something like this: public class Program { public static void Main(string[] args) { BlazorApp.Program.Main(null); MyWebApi.Program.Main(null); // ... maybe…
Ray
  • 2,974
  • 20
  • 26
0
votes
1 answer

Dotnet Core 3.1 Kestrel Web API BadRequest, System.NotSupportedException

In my server, I have a function like this [HttpPost()] public void Hello([FromBody]int Version) { } I was able to invoke the above API if I omit the [FromBody]int Version parameters var c = new HttpClient(); var Json = new…
s k
  • 4,342
  • 3
  • 42
  • 61
0
votes
1 answer

Kestrel: Invoke-WebRequest doesn't work while the URL works in browser?

Update: The following error only occur when launching the application using Kestrel. I already added the following two lines for Microsoft.AspNetCore.Authentication.Negotiate // in public void ConfigureServices(IServiceCollection…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
0
votes
1 answer

IIS website : error trying to access site in browser (Kestrel problem)

I created a site in ASP.NET Core with VisualStudio and then copied the files to the server and linked IIS (8.5) to it. I configured a binding with localhost:443. However, when I browse to https://localhost:443 I obtain an error: An error occurred…
0
votes
0 answers

ASP.Net Core website blocks every day at the same time

I really don't know what to add that't not in the title. I'm running a 2.2 core app on IIS on a Windows Server 2016 server and every day arround 8pm the website blocks and I have to restart it. Nothing in the event viewer, I don't have any…
0
votes
0 answers

Accessing an HTTPGET endpoint on a console app and getting a 404

I have a Net Core 2.1 console app that uses Kestrel for hosting/listening with the following endpoint. [Route("[controller]")] public class NameController { [HttpGet] public async Task Get() { …
John
  • 371
  • 2
  • 4
  • 16
0
votes
1 answer

dotnetcore kestrel server not receiving request through reverse proxy

The situation is that I'm using two servers on Debian stretch, a kestrel server that is used for hosting a Blazor server side application and Apache 2.4 for forwarding requests to the kestrel server. The site that I'm trying to host is a .app…