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

Compress HTTP responses using Kestrel and .NET core middleware

I'm looking to encode HTTP responses on the fly using .NET Core and the Kestrel web server. The following code does not work, the response fails to load in the browser. var response = context.Response; if…
7
votes
1 answer

How do I add no-cache to Kestrel responses?

I'm using Asp.Net Core RC2 and Kestrel as my web server. I need to ensure that requests (in this case all of them) are responded to with a no-cache header so that the browsers get the newest version (not 304). Is there a way in Startup to configure…
AlignedDev
  • 8,102
  • 9
  • 56
  • 91
7
votes
2 answers

asp.net core windows authentication on local iis

I created default asp.net core application from defaut template. I chose Windows Authentication option during porcess of creation of new project (here is what i did). When i run app on issexpress, it works like a charm. When i moved app onto local…
7
votes
2 answers

Asp.Net Core 1.0 (aka Asp.Net 5) website refresh with any file change?

Looking for a similar functionality like browsersync give for Node applications to auto reload browser with any file change. Running Asp.Net Core (aka Asp.net 5) with dnx-watch and it restarts the Kestrel web server with any C# code change, but…
Nexus23
  • 6,195
  • 9
  • 50
  • 67
6
votes
1 answer

dotnet run hangs / is stuck

A razor webapp can no longer be started on my machine. The build command dotnet build works as expected but dotnet run is stuck after the first warnings. C:\dev\mywebapp>dotnet…
surfmuggle
  • 5,527
  • 7
  • 48
  • 77
6
votes
3 answers

asp net core 6.0 kestrel server is not working

I have this code running kestrel builder.WebHost.UseKestrel().UseUrls("https://myfirstproj1.asp") .UseIISIntegration(); but I can't access the site through the url I specified. What am I doing wrong?
6
votes
1 answer

Asp.Net Core – Kestrel – Port Sharing – Alternative

Currently we are moving from .Net Framework (4.7) to .Net Core / Asp.Net Core. We are having a few micro services which are using WebAPI and listening on the same port (443). And we have a single page application (which consists of a few modules…
6
votes
2 answers

Create X509Certificate2 from .crt and .key files using ASP.NET Core 3.0 built-in API

I am developing a web application using ASP.NET Core 3.0 preview 8. What I want to achieve is to create a X509Certificate2 directly from .crt and .key (PKCS#1) files to use it with Kestrel using the new .NET Core 3.0 built in Api which was…
Waxren
  • 2,002
  • 4
  • 30
  • 43
6
votes
1 answer

ASP.NET Core with React - 431 Request headers too long

I have a dotnet application that I start with the dotnet run command. I also have a React app, that I start with yarn start. When I open the browser on localhost:3000 (where the react app is) the server log looks like this: ....this goes on for…
J. Loe
  • 201
  • 5
  • 14
6
votes
1 answer

.NET Core gives unknown error while processing HTTPS certificate

I'm trying to build a .NET Core server that uses a HTTPS connection. I created a self-signed certificate using dotnet dev-certs tool and set up Kestrel like this: return WebHost.CreateDefaultBuilder(args) .UseKestrel(options…
Idov
  • 5,006
  • 17
  • 69
  • 106
6
votes
1 answer

How to fix "Failed - No file" on download?

I am attempting to set up files for download that will work for Chrome and IE 10-11. It works for the most part with normal file types (EXE, PNG, TXT, ..) but when attempting to download a text file without a file type, or a random type like "000"…
Gavin
  • 114
  • 1
  • 1
  • 8
6
votes
1 answer

ASP.NET Core and Kestrel design decision: Why do they use libuv?

I just realized that ASP.NET Core apps are not pure CLR apps - they always depend on additional binary libraries: libuv through Kestrel or, probably way less used, http.sys. I find this surprising as I would have thought there to be already enough…
John
  • 6,693
  • 3
  • 51
  • 90
6
votes
2 answers

Unable to start a connection to signalr core hub with Angular 5 client

I have a .Net Core 2.0 C# Web Api running a SignalR Core hub. I am unable to even start() my hubConnection from angular (5.0.1) receiving this error: OPTIONS https://localhost:44301/hubs/sample 405 (Method Not Allowed) Error: Failed to start the…
6
votes
2 answers

Recommended identity / user for Kestrel + .NET Core (Windows)

When using Kestrel with IIS you define an Application Pool and identity (user). The default identity is "ApplicationPoolIdentity" but can be one of the following or a custom user: When the application runs, Kestrel runs under the Identity you…
6
votes
2 answers

Kestrel and OpenSSL cipher suites

How can I change the available cipher suites available to OpenSSL/Kestrel from within a Linux docker container? First, lets start with some environment details: We use a Linux docker container (Docker version 17.06.0-ce, build 02c1d87) that we…
Medi
  • 63
  • 1
  • 4