kestrel-http-server

Enable both Windows authentication and Anonymous authentication in an ASP.NET Core app

筅森魡賤 提交于 2019-11-27 12:25:49
问题 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, because the IIS configuration of ASP.NET Core apps is so different than classic ASP.NET. For example, ASP.NET Core uses the Kestrel proxy, so many of the configurations relevant in ASP.NET are not in ASP.NET Core. I've basically tried everything i could possibly found on the Internet but none helped

.NET Core app unable to start in IIS due to ErrorCode = '0x80004005 : 80008083

拜拜、爱过 提交于 2019-11-27 03:31:26
I have a .NET Core application. It runs locally with VS2017 and Kestrel. It runs locally under IIS. However, on the server it fails to start with a 502.5 - Process Failure message. In the event logs I get more detail: Application '...' with physical root 'C:...\my-app-folder\' failed to start process with commandline '"dotnet" .\MyApp.dll', ErrorCode = '0x80004005 : 80008083. Previous builds of the application work fine on the same server, the only difference being that they were published with VS2017RC (2&3) and this is the first build with the fully released VS2017. What does ErrorCode =

Increase upload request length limit in Kestrel

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 02:33:54
问题 I am running an ASP.NET Core web app and want to upload large files. I know that when running IIS, the limits can be changed via web.config : <httpRuntime maxRequestLength="1048576" /> ... <requestLimits maxAllowedContentLength="1073741824" /> How can you do the equivalent while running the new ASP.NET Core Kestrel web server? I get the exception "Request body too large." 回答1: I found this helpful announcement that confirms there is a 28.6 MB body size limit starting with ASP.NET Core 2.0,

ASP.NET Core 2.1 + Kestrel (How to disable HTTPS)

北慕城南 提交于 2019-11-27 01:26:35
问题 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 HTTPS (which is easy enough to undo). However my question is... how can I disable HTTPS entirely for my project. I've read through the docs and played with a variety of config settings for HTTPS but nothing I do seems to allow me to turn it off and just run an HTTP project. Am I crazy or just missing

How do I get the kestrel web server to listen to non-localhost requests?

雨燕双飞 提交于 2019-11-26 23:55:42
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 listen to non-localhost requests? P.S. This question is not a duplicate of this...it refers to asp.net pre RC1 when hosting.ini actually had an .ini format. Now, it's JSON and I can't find any documentation on what should actually be in it. P.P.S. The real solution is in the non-accepted answer to the linked question, with a massive caveat. Steps: Change your project.json per the linked answer. Publish

Is Kestrel using a single thread for processing requests like Node.js?

空扰寡人 提交于 2019-11-26 15:13:15
问题 Both Kestrel and Node.js are based on libuv. While Node.js exactly states that it uses an event loop, I can't seem to find if such is the case for Kestrel, or if it utilizes thread pooling / request queue like IIS? Kestrel behind a web server Node.js event loop ┌───────────────────────┐ ┌─>│ timers │ │ └──────────┬────────────┘ │ ┌──────────┴────────────┐ │ │ I/O callbacks │ │ └──────────┬────────────┘ │ ┌──────────┴────────────┐ │ │ idle, prepare │ │ └──────────┬────────────┘ ┌──────────────

What is Kestrel (vs IIS / Express)

醉酒当歌 提交于 2019-11-26 15:09:37
问题 What is the kestrel web server and how does it relate to IIS / IIS Express? I come from developing apps on IIS Express and hosting them on an IIS web server. With ASP.NET Core I have a dependency on Microsoft.AspNetCore.Server.Kestrel and my startup has .UseServer("Microsoft.AspNetCore.Server.Kestrel") . But when I run my website, I still get the IIS Express icon in the system tray. Someone asked me if I was using IIS Express or Kestrel and I didn't know what to say! I don't have any cross

.NET Core app unable to start in IIS due to ErrorCode = &#39;0x80004005 : 80008083

戏子无情 提交于 2019-11-26 09:29:01
问题 I have a .NET Core application. It runs locally with VS2017 and Kestrel. It runs locally under IIS. However, on the server it fails to start with a 502.5 - Process Failure message. In the event logs I get more detail: Application \'...\' with physical root \'C:...\\my-app-folder\\\' failed to start process with commandline \'\"dotnet\" .\\MyApp.dll\', ErrorCode = \'0x80004005 : 80008083. Previous builds of the application work fine on the same server, the only difference being that they were

How do I get the kestrel web server to listen to non-localhost requests?

a 夏天 提交于 2019-11-26 09:16:25
问题 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 listen to non-localhost requests? P.S. This question is not a duplicate of this...it refers to asp.net pre RC1 when hosting.ini actually had an .ini format. Now, it\'s JSON and I can\'t find any documentation on what should actually be in it. P.P.S. The real solution is in the non-accepted answer to