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

Kestrel HTTPS: An unknown error occurred while processing the certificate

Having background errors thrown by Kestrel but not preventing user to use web server properly in HTTPS mode. Those errors are occuring every 20minutes roughly even if there is no activity on web server. "System.AggregateException: One or more errors…
4
votes
1 answer

Unable to stop asp.net core Windows Service when Kestrel receives requests

We are using asp.net core running on .net 4.5.1 as Windows Service. Kestrel is used as web server (Kestrel version is 1.1.2). It was configured in accordance with Host an ASP.NET Core app in a Windows Service. We also using SignalR running on…
sureman
  • 43
  • 1
  • 4
4
votes
1 answer

Serving Files and Routes from Web API

We have an existing Web API project that we want to now serve 2 clients from root as well (accessed via different subdomains). What is the right way to setup Web API to perform the functions of serving files for two websites and hitting routes? I…
Scotty H
  • 6,432
  • 6
  • 41
  • 94
4
votes
3 answers

Kestrel fail: Can not load Microsoft.Extensions.Logging.Abstractions

I had a very simple Kestrel / ASP.NET Core project successfully deployed to my Windows 2008 R2 server.. (started with an empty Web project + IdentityServer4 nuget I was following this Getting Started page) So, I could initially retrieve the…
bkwdesign
  • 1,953
  • 2
  • 28
  • 50
4
votes
1 answer

asp.net core data protection : An exception was thrown while deserializing the token

Im running asp.net core on a webfarm using redis as dataprotection storage. my app is under heavy load so i get following error constantly from redis : Timeout performing EVAL, inst: 9, queue: 1448, qu: 0, qs: 1448, qc: 0, wr: 0, wq: 0, in:…
4
votes
0 answers

How to modify ASP.NET Core routes mapping after WebHost is started

I run WebHost with Kestrel in my ASP.NET Core application. I use simple routing model without MVC. The relevant configuration code: _host = new WebHostBuilder() .UseConfiguration(_config) .UseKestrel() .ConfigureServices(services =>…
Slava
  • 1,065
  • 5
  • 11
4
votes
1 answer

Kestrel port settings under VS2017 are ignored

I have an issue with starting Kestrel server from VS2017. In VS2015 in launchSettings.json I was able to set the port like this: "Kestrel": { "launchUrl": "http://localhost:5010/api", "environmentVariables": { "ASPNETCORE_URLS":…
kubal5003
  • 7,186
  • 8
  • 52
  • 90
4
votes
1 answer

dotnet core setting Cache-Control has no effect

I have configured the dotnet core middleware to output Cache-Control headers. I am looking to cache all static content, but most particularly several .png files. The cache header is not being output? I am using dotnet core 1.1.1. public void…
Jim
  • 14,952
  • 15
  • 80
  • 167
4
votes
1 answer

Bi-directional communication with ASPNET Core and websockets

I am out of ideas, how this may be implemented. Here is the problem, and what I have already tried. Problem There is a message queue with messages coming from the external system. A client must open websocket connection to the server and receive…
Zygimantas
  • 8,547
  • 7
  • 42
  • 54
4
votes
2 answers

Configure IIS as a load balancer for two kestrel servers (for the same website)

ASP.NET Core cannot be run directly in IIS as it requires Kestrel. This means it is not possible to update a website at runtime like in traditional ASP.NET sites, since the kestrel server have to be shut down during the update. I want to avoid…
jgauffin
  • 99,844
  • 45
  • 235
  • 372
4
votes
1 answer

The input string contains non-ASCII or null characters

2016-12-02 02:54:39:180 [WARNING] Microsoft.AspNetCore.Server.Kestrel - Connection processing ended abnormally Microsoft.AspNetCore.Server.Kestrel.BadHttpRequestException: The input string contains non-ASCII or null characters. at…
4
votes
1 answer

Is it possible to specify 2 different SSL certificates for a single instance of Kestrel server?

I know there is a method "UseHttps" in the class "KestrelServerOptions" that accepts a single certificate, but is it possible to specify more than 1 SSL cert in order to be able to work with multiple domains and multiple certificates within a single…
Dmitry
  • 41
  • 2
4
votes
0 answers

Windows Authentication in IIS using Kestrel

My web application needs windows authentication (Kerberos or NTLM) to manage authorization by Active Directory memberships. I've configured my IIS web site with windows authentication only. My web.config is configured with…
4
votes
0 answers

How to ASP.NET Core 1.0.1 API HTTPS with Kestrel

we want to implement an ASP.NET Core API (1.0.1) on an IIS Webserver (as proxy) which is runing on a Kestrel server. Clients running agains the API should do this with an Certificate ussied by our company CA. The user than should be authenticated by…
4
votes
0 answers

ASP.NET Core and Database Connection Pooling

I am using ASP.NET Core with Dapper, probably on Kestrel with SQL Server reverse proxy. How is database connection pooling handling in this type of an architecture? Thanks!
user1340582
  • 19,151
  • 35
  • 115
  • 171