kestrel-http-server Questions

6

Solved

I know that this has been asked many times before, but unfortunately not about ASP.NET Core web apps, just the classic ASP.NET web apps. All the answers i've found on the internet don't help me, be...
Mabellemable asked 27/6, 2017 at 10:58

5

Background I have a relatively new ASP.NET Core 2 site. It's running on just one server (Windows Server 2012 R2, IIS 8.5), and I only restart the site once every few days when I upload an update. A...
Scop asked 10/1, 2018 at 3:8

3

Solved

I have 2 approaches to do the same thing, but Azure has deprecated the one that works, and the other method doesn't work. The approach that works, but is deprecated: I store my PFX in Azure Key V...
Retrorocket asked 21/7, 2018 at 0:46

9

Solved

How can I get asp.net core to serve an index.html file from inside my wwwroot? The reason I want to do this is because I an developing an angular 4 app using the angular CLI and it takes care of t...
Madame asked 29/3, 2017 at 10:18

8

Solved

Is there a way to access the DB context of a .NET Core application in the program.cs file? I am basically looking to configure Kestrel with specific options that are stored in the database so I wou...
Eisenstark asked 7/3, 2019 at 8:55

3

Solved

ASP.Net Core documentation here has a nice console logging output like in the picture below with colors for various LogLevels. I have now created an application in Visual Studio and I see that it n...
Dracula asked 20/10, 2016 at 7:58

5

Solved

I'm creating an ASP.net Core 2.0 app to run on the .net Core 2.0 runtime, both currently in their Preview versions. However, I cannot figure out how to have Kestrel use something other than the def...
Cacique asked 22/5, 2017 at 16:26

8

Solved

I've deployed my c#, asp.net 5, mvc 6 app to a windows 2008 server. I've fired up dnx web and it is listening to port 5000 and works fine when accessing from local computer. How do I get it to list...
Nagey asked 10/12, 2015 at 22:18

2

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 run Building... C...
Epsomite asked 16/2, 2023 at 9:15

5

I'm currently running my application under either Kestrel (locally) or IIS InProcess (production). return WebHost.CreateDefaultBuilder(args) .ConfigureKestrel(options => options.AddServerHeade...
Jarv asked 25/4, 2019 at 15:27

3

Solved

I did encounter a wierd problem with kestrel. I am not able to upload the multiple files which exceed the kestrel's MaxRequestBodySize. The expected behaviour is to throw the BadHttpRequestExceptio...
Merino asked 26/4, 2018 at 7:56

1

Solved

I have tried the following two functions to configure Kestrel: public static void UseKestralConfigurations(this WebApplicationBuilder builder) { _ = builder.Services.Configure<KestrelServerOpti...
Hermelindahermeneutic asked 25/7, 2023 at 0:27

1

I have an asp.net core self hosted application within Kestrel. Part of the .UseKestrel options within my Program.cs Main() function is to use the ClientCertificateValidation() functionality to have...
Schism asked 5/4, 2017 at 10:3

2

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 th...
Willawillabella asked 31/8, 2019 at 15:57

12

Solved

So it appears with the advent of ASP.NET Core 2.1, Kestrel now automatically creates an HTTPS endpoint along side the HTTP one, and default project templates are setup to redirect from HTTP to HTTP...
Antho asked 19/6, 2018 at 19:34

2

I'm trying to upload multiple files in my .NET Core v3.1 Blazor application, but I can't get passed the 30MB limit. Searching for this I found Increase upload file size in Asp.Net core and tried th...

4

Solved

I'm using (ASP).NET Core (3.1x), C#, Blazor and Microsoft Kestrel Web-server and I'm wondering if I can run 2 or 3 different websites (domain names) on one Kestrel instance and on port 80. I would ...
Underwrite asked 4/2, 2020 at 10:3

3

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...
Duplicator asked 11/10, 2021 at 21:59

3

Solved

I want to use HTTPS in my ASP.Net Core 2.0 (with Kestrel web server) application. The official documentation uses pfx format, but I want to use PEM format (generated from Let's encrypt) directly ...

6

Solved

When using Kestrel in an ASP.NET Core 2.1 project and specifying a binding in UseKestrel(), a message is logged at warning level: Overriding address(es) 'http://localhost:50000/'. Binding to endpo...
Bibliophile asked 8/8, 2018 at 4:57

2

I have seen this question answered but it doesn't seem to be working for .net core 3.1 This code finds the Certificate: using (var store = new X509Store("Root", StoreLocation.LocalMachine)) { sto...
Antipyrine asked 26/1, 2020 at 17:55

3

Is there a way in Kestrel to listen on 2 ports, e.g. 80 and 81, and specify different controllers for each port? The scenario I have is that there are 2 controllers, one for the end user requests t...
Fanlight asked 5/4, 2018 at 19:45

3

Solved

My ASP.NET Core app uses "out-of-box" external login authentication. What I want to implement - on facebook challenge I want to wrap redirect url and return it as json to consume in jquery frontend...
Nathalia asked 21/4, 2020 at 19:25

3

Solved

I am trying to remove the IIS Express profile from my .NET Core launch settings but every time i repoen the solution, Visual Studio adds it back in again. For example, in a new project my launch se...

5

Solved

TL;DR: Why does an aspnet core app run on port 80 from within a Docker image, but 5000 outside a docker image. Elaborate I went through the aspnet core / docker tutorial found here: https://lear...
Dancer asked 7/2, 2018 at 17:10

© 2022 - 2025 — McMap. All rights reserved.