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

.net core how to access shared folder on server outside project

I'm building a small app and want to access files (images) from a directory outside the project but on the same server the app will be running. How can I access the directory I want?
mapa0402
  • 454
  • 1
  • 8
  • 24
0
votes
0 answers

how to change default port in linux server for deploying aspnet core 2.0 project

I am trying to host aspnet core 2.0 application on Ubuntu Linux. It is working fine on 5000 port but when I change the port to something else like 6000 then ajax response comes null. I'm using the below code in Program.cs public static void…
0
votes
0 answers

VSCode on Ubuntu throwing AuthenticationException when running empty MVC .NET Core Application

I am trying to scaffold an MVC .NET Core application on a machine running Ubuntu 16.04. I have created the app by running dotnet new mvc and loaded the generated application files in VSCode. When I try to run the applications, it compiles…
infojolt
  • 5,244
  • 3
  • 40
  • 82
0
votes
1 answer

Connect directly to Kestrel behind IIS

I have a web app made in C# using asp.net core 2.0. This app is hosted in IIS, as this is the recommended way to expose it to the internet. I am now making some services hosted in the same local lan as the webapp, which need to connect to the above…
Floris
  • 118
  • 1
  • 10
0
votes
1 answer

Cannot connect to local Docker running Kestrel server

I have a Kestrel server that returns Hello World to any HTTP request. static class Program { static void Main(string[] args) { var webHostBuilder = WebHost.CreateDefaultBuilder(args) …
BanksySan
  • 27,362
  • 33
  • 117
  • 216
0
votes
1 answer

Mongodb too many open files in system

our software containing: centos, nginx, kestrel http server, dotnet core (v2.0.8) application work with mongodb (v3.6.7) kestrel http server sometimes stop responding, it seems that an error from mongodb driver connection like below logs on 3th…
bits8
  • 3
  • 6
0
votes
0 answers

Modify content of requested file in ASP.NET core 2.0

I am trying to change the body of specified requested files using code below. The index.html file is correctly sended to client, but other files included in head section are empty on client's side (files are shown in sources tab in chrome). Kestrel…
Adam Mrozek
  • 1,410
  • 4
  • 26
  • 49
0
votes
0 answers

Kestrel ASP.NET takes a long time to get photo hosted on local server, quicker when running the ASP.NET server on a remote computer

Hey guys hopefully the title wasn't too bad, hard to describe succinctly. So I have an ASP.net core 2.0 server running (via Kestrel) on a VPS hosted in Australia (I'm in New Zealand, ~50ms latency to server). An HTTP Get action causes the following…
0
votes
1 answer

Why doesn't Kestrel handle more HTTP connections simultaneously when handlers are slow?

I have a default ASP .NET Core Web API application with a single handler: [HttpGet("{x}")] public string Get(string x) { var guid = Guid.NewGuid(); var start = DateTime.Now; Console.WriteLine($"{guid}\t1\tSTRT\t{start}"); var sb =…
0
votes
2 answers

ASP.NET core builds both IIS Express and Kestrel?

I am using ASP.NET Core with VS 2017. I am wondering if the applications when being built create both IIS Express and Kestrel? Or just one of them? I am talking just locally.
Unknown developer
  • 5,414
  • 13
  • 52
  • 100
0
votes
1 answer

Hide exceptions from Kestrel console window

I am using Kestrel with .NET Core 2 to serve a Web API application. I want hide exceptions that occur from displaying in the console window.
Bryan
  • 5,065
  • 10
  • 51
  • 68
0
votes
1 answer

.net core kestrel service can't use configuration

I have set up a .net core application on linux using nginx. It works perfectly with dotnet MyProject.dll. However, using the instructions in this link, when I try setting up a kestrel service, it doesn't seem to be able to use the Configuration in…
0
votes
0 answers

Make Kestrel serve file existing minified version of requested file

What I want to achieve is the following. When I recibe a request for a HTML, JS or CSS file, return its minified version. I minify when I publish, not dinamically. Example: Browser asks por /index.html Server checks the extensions Server checks if…
0
votes
0 answers

How to configure SSL in kestrel self-host web application in linux and mac and Register certificate to SSL port

I have created self-host web API in .Net using asp.net core, I need to configure it with SSL. Here is the windows code to do the that. public class Program { public static void Main(string[] args) { try { int…
Prashanth
  • 507
  • 5
  • 25
0
votes
0 answers

How to define custom url while hostingdotnet core 2.0 application in Kestrel

I am hosting my angular application using DotNet Core 2.0 and here is my hosting configuration in program.cs using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using…
user3154990
  • 555
  • 4
  • 13
  • 27