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

Some file not served when run via Visual Studio Code

I have a 'Hello World' Kestrel server generated by Yeoman (as described here). yo aspnet When I run the site via the command line everything work well: dotnet run If it's run through Visual Studio Code though bootstrap.css, jquery.js and…
BanksySan
  • 27,362
  • 33
  • 117
  • 216
0
votes
0 answers

Can I host a ASP.NET (4.6.1) App on a Linux server?

I recently tested an ASP.NET Core app on my Linux Server hosted via Mono & Kestrel. Everything worked well, however, I had to change from ASP.NET Core due to some unsupported packages that were essential for the app. I am new to ASP.NET so not 100%…
Phill Wiggins
  • 2,577
  • 4
  • 28
  • 33
0
votes
1 answer

How to set DOTNET_REFERENCE_ASSEMBLIES_PATH?

I am having a few issues at the moment building my application. I can run dotnet restore, but once I run dotnet build or run it mentions:- The current project is not valid because of the following errors:- dir/project.json(35, 15): error…
Phill Wiggins
  • 2,577
  • 4
  • 28
  • 33
0
votes
0 answers

DOTNET_REFERENCE_ASSEMBLIES_PATH DotNet1012

I am very new to ASP.NET and I am trying to run an ASP.NET Core app on my Kestrel server. After running dotnet restore, then dotnet run, I am receiving this error:- The current project is not valid because of the following…
Phill Wiggins
  • 2,577
  • 4
  • 28
  • 33
0
votes
0 answers

dotnet core nlog running on Linux logs only one entry

I am running an aspnet core site on Linux using Kestrel. I have set up nlog to log to csv files. All is well in my Windows development environment, but when I run it on Linux I only get one entry in the log file. I turned on nlog tracing and found…
0
votes
1 answer

Accessing CoreClr web api hosted in Docker

I'm trying to run through a few simple scenarios related to running .net core based applications in a Docker container. I'm running on Windows 10 and using VS 2015 for dev. I've installed the docker VS tools and Docker-Machine to allow me to use…
0
votes
0 answers

Kestrel throw "Invalid UTF-8" when client send text with multiple-byte characters and length greater than buffer for ReceiveAsync

Trying to use System.Net.WebSockets.Websocket with ASP.Net Core, but getting a problem when receiving Chinese text. This is my code: while (_socket.State == WebSocketState.Open) { var result = await _socket.ReceiveAsync(_reciveBufferSegment,…
Hsin-Yu Chen
  • 59
  • 1
  • 4
0
votes
1 answer

Kestrel error on a netcore web api app on a dev machine but not on another

I am having an error when excecuting a netcore WebApi aplication, the weird thing is that it does run ok on another machine. Here is the console information when I call the method that causes the error: info:…
Jorge A.
  • 55
  • 1
  • 8
0
votes
1 answer

'Microsoft.AspNet.Server.Kestrel' issue while hosting in IIS

I have ASP.NET Core MVC 6 Web API project, which when hosted on IIS, gives the below error: Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web, ef. System.IO.FileNotFoundException:…
Nands
  • 379
  • 3
  • 19
0
votes
1 answer

Unable to start Kestrel with 'dnx web', says "current runtime target framework is not compatible"

There are a lot of similar questions on SO, but I couldn't find a solution to my problem. It's evident I'm not familiar enough with .NET Core yet... ) I have a strict ASP.NET Core app, and I'm trying to start the Kestrel web server using the dnx web…
Ted Nyberg
  • 7,001
  • 7
  • 41
  • 72
0
votes
1 answer

Kestrel returns HTTP 500 when it runs as an exe

I have a small Asp.Net Core web app. I targeted the net461 framework because it has a dependency on Restsharp. When I run this web app as ./web.exe, it returns with HTTP 500. When I run with "dotnet run" from project folder, it runs fine. I must use…
JoeX
  • 21
  • 6
0
votes
2 answers

How to handle HTTPS requests in Service Fabric gateway pattern using ASP.NET 5 Kestrel

I have a Service Fabric with a stateless service following the gateway pattern listening for HTTP requests and then forwarding them to the business logic in the cluster. That works great. Now I'm trying to add HTTPS support. The gateway project is…
Haukman
  • 3,726
  • 2
  • 21
  • 33
0
votes
0 answers

WebAPI MVC 6 Blank page

To host the WebAPI through kestrel, when I run web.cmd as administrator through command prompt, it runs fine. But when I run it as other user, I get the error as in the below screenshot: UPDATE: I for some reason had to restart the system. When I…
Nands
  • 379
  • 3
  • 19
0
votes
1 answer

unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel' Publish website on Windows Server

I am getting following error while running the publish asp.net core RC1 website on the Windows Server using web.cmd, Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel' The publish website has runtime included. Here is…
0
votes
1 answer

Upgrading and deploying ASP.NET RC1 project to RC2 in web app

I have a web app in ASP.NET Core RC1 in production and deployed in Azure with thousand of users using day a day. I'm now upgrading my web project to RC2, following the tutorials I have found on Google (for example: Scott Blog, Official Doc,…
chemitaxis
  • 13,889
  • 17
  • 74
  • 125