Issue I’am really struggling on this one. I have a VueJs App that is served by a kestrel server on a C# App : PhysicalFileProvider fileProvider = new PhysicalFileProvider( Path.Combine(builderEnv.ContentRootPath, "FrontEnd")); DefaultFilesOptions defoptions = new DefaultFilesOptions(); defoptions.DefaultFileNames.Clear(); defoptions.FileProvider = fileProvider;
Continue readingTag: kestrel-http-server
[SOLVED] Unable to load static files from .NET Core web app using Ubuntu/Apache
Issue I have a .NET Core 3.1 web app running on an Ubuntu 20.04 server through Apache 2.4.41. When I visit the web address, I’m served the website – links work fine, but I’m getting 404 file not found errors
Continue reading[SOLVED] HTTP Verbs PUT and DELETE: 405 Method not allowed – how to allow?
Issue I’ve been trying all the suggested workarounds for ASP.NET to be able to address my REST web service by HTTP Methods PUT and DELETE. However, none of them seems to work. (i.e. removing WebDAV handler or allowing all verbs
Continue reading[SOLVED] HTTP Verbs PUT and DELETE: 405 Method not allowed – how to allow?
Issue I’ve been trying all the suggested workarounds for ASP.NET to be able to address my REST web service by HTTP Methods PUT and DELETE. However, none of them seems to work. (i.e. removing WebDAV handler or allowing all verbs
Continue reading[SOLVED] How to resolve Heartbeat took longer than "00:00:01" failure?
Issue I have a .NetCore C# project which performs an HTTP POST. The project is set up in Kubernetes and I’ve noticed the logs below: Heartbeat took longer than "00:00:01" at "02/22/2020 15:43:45 +00:00". warn: Microsoft.AspNetCore.Server.Kestrel[22] Heartbeat took longer than
Continue reading[SOLVED] How do I get the kestrel web server to listen to non-localhost requests?
Issue 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
Continue reading[SOLVED] Read environment variables in ASP.NET Core
Issue Running my ASP.NET Core application using DNX, I was able to set environment variables from the command line and then run it like this: set ASPNET_ENV = Production dnx web Using the same approach in 1.0: set ASPNETCORE_ENVIRONMENT =
Continue reading[SOLVED] How can I configure endpoints in Kestrel?
Issue I’m learning how to work with in ASP.NET Core 2 and I’ve come across a rather annoying problem. Whenever I run my application, the Kestrel server ignores my endpoint configuration and instead starts listening on a random port. Needless
Continue reading[SOLVED] Why does aspnet core start on port 80 from within Docker?
Issue 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://docs.microsoft.com/en-us/dotnet/core/docker/building-net-docker-images Half way through the
Continue reading