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

Where is the Kestrel server log?

Where is the Kestrel server log? Im trying to find the cause of why my kestrel server every a few days get down. So i think to find some clue in the kestrel log (if it has one). Something like the iis log configured in the web.config.
Uriel Falak
  • 139
  • 1
  • 14
0
votes
1 answer

Authorization failed. doesn't raise exception?

I created a server-side blazor application with Windows authentication. It works fine and returns the data from the database when running using IIS Express in Visual Studio 2019. try { var filtered = _context.Trades .Where(.....) …
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
0
votes
1 answer

Asp.Net Core 2.2 In-Process Hosting Timeout IIS

I am facing timeout issue with Asp.Net Core 2.2 In-Process hosting model. I have a cshtml view which call an Api by an Ajax request. Api has a long running task normally takes 2-3 minutes to complete. After 1 minute, the ajax call becomes timeout in…
0
votes
0 answers

Deploy .net core 2.2 web app on remote Kestrel Server?

This question is in 2 parts. I have successfully installed .net core 2.2 libraries on the Windows 2012 server. Now after this How to setup Kestrel Server on the Windows Server 2012 R2? I am using TFS to release the build of my core web app…
King Linux
  • 357
  • 3
  • 11
0
votes
1 answer

Disabling Nagle algorithm in Kestrel Web Server with ASP.NET Core 3.0

ListenOptions.NoDelay is removed and not available in .NET Core 3.0 anymore. In the documentation for migrating to 3.0…
peco
  • 3,890
  • 1
  • 20
  • 27
0
votes
1 answer

setting min threadcount with UseLibuv Ubuntu System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException'

I have asp.net core 2.1.6 application It is running fine on Windows with IIS public static IWebHostBuilder BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup() …
0
votes
0 answers

ConfigureKestrel() conflict with appsettings

I have Kestrel section in appsettings.json and I also call ConfigureKestrel() in Program.cs. When I run the app, there is an error: 11:10:36 [Warning] () Overriding address(es) '"https://localhost:5003"'. Binding to endpoints defined in…
0
votes
2 answers

System.IO.DirectoryNotFoundException while streaming 9 MB file - .NET Core 2.2 (using Kestrel)

I'm using the code mentioned in this link (https://learn.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-2.2#uploading-large-files-with-streaming) to stream 9MB jpg/png file but I end up getting the following error on EC2…
Coder Absolute
  • 5,417
  • 5
  • 26
  • 41
0
votes
1 answer

UseLibuv option gone after changing Microsoft.aspnetcore.all to Microsoft.NETCore.App in .net core 2.1.6

I am using asp.net core 2.1.6 I have just changed my Microsoft.aspnetcore.all to Microsoft.NETCore.App as publishing the web api project is making too much size. In my code i were using use UseLibuv(o => o.ThreadCount = 1000) to set minmum thread…
Kamran Shahid
  • 3,954
  • 5
  • 48
  • 93
0
votes
0 answers

How to protect PFX certificates for ASP.NET Core web apps running on Linux?

I have an ASP.NET Core 2.2 web app running on Ubuntu. The web app is served by Kestrel configured as an Ubuntu service, running as www-data user. The web app uses a PFX certificate for signing custom responses. So, obviously I need to give www-data…
JustAMartin
  • 13,165
  • 18
  • 99
  • 183
0
votes
2 answers

Why does Active Directory work with Visual Studio MVC templates when using IIS Express but not Kestrel?

I see my AD name when I use IIS Express is @User.Identity.Name I switch to Kestrel and the name is blank ? What happened to AD with Kestrel? I've tried some fixes below but not quite sure I knew what I was doing…
punkouter
  • 5,170
  • 15
  • 71
  • 116
0
votes
1 answer

Bad request data: "Requests with 'Connection: Upgrade' cannot have content in the request body." when doing POST request to APi

I have created a simple .NET core Web API, which runs perfectly on localhost. Whenever i deploy the docker image to our server (Jelastic) and POST to the only POST endpoint i get failure. The error is as follows: INFO 02:41:14 Connection id…
Maarten
  • 660
  • 1
  • 6
  • 21
0
votes
1 answer

ASP.Net core 2 - powershell remoting works only in IIS Express (Kestrel not working)

I'm trying to connect powershell session from my ASP.Net Core 2 app (.NET Framework 4.6.2 as a platform) to my Exchange server. Code works perfectly when using IIS Express (debug in Visual studio), but I had no luck using Kestrel. Exchange is set up…
Miroslav Adamec
  • 1,060
  • 1
  • 15
  • 23
0
votes
0 answers

Exceptions thrown by middleware are not being logged (.UseExceptionHandler?)

For the hell of me I can't figure this out. I have some middleware which is throwing exceptions, i.e. public class SubscriptionMiddleware { private readonly RequestDelegate _next; ... public SubscriptionMiddleware(RequestDelegate next,…
bokibeg
  • 2,081
  • 16
  • 23
0
votes
1 answer

How check entrance data before web service without getting slowly?

I want to check some character in all entrance data before API. I check in middle-ware but it makes API slowly. I mean this: 1 Client send request => 2 NGINX =>3 Kestrel => 4 middle-ware=> 5 Code I want to check in steps before code. I use .net core…