kestrel-http-server

aspnet5 vNext (rc1) iis 8 - bad gateway 502.3

若如初见. 提交于 2020-01-14 09:24:18
问题 I realize posts like this exist, I've read/re-read and am still having issues. Most are old or not directly related and so I thought I'd re-post w/a current example. Trying to get a basic site running in IIS 8.5+ on win server 2012 R2. At this point I'm stuck at " 502.3 - Bad Gateway " (error code 80070002, module httpPlatformHandler, notification executeRequestHandler, handler httpplatformhandler) Relevant info: dnx 1.0.0-rc1-final clr (x64) IIS - installed/verified HttpPlatformHandler 1.2

aspnet5 vNext (rc1) iis 8 - bad gateway 502.3

时光总嘲笑我的痴心妄想 提交于 2020-01-14 09:23:28
问题 I realize posts like this exist, I've read/re-read and am still having issues. Most are old or not directly related and so I thought I'd re-post w/a current example. Trying to get a basic site running in IIS 8.5+ on win server 2012 R2. At this point I'm stuck at " 502.3 - Bad Gateway " (error code 80070002, module httpPlatformHandler, notification executeRequestHandler, handler httpplatformhandler) Relevant info: dnx 1.0.0-rc1-final clr (x64) IIS - installed/verified HttpPlatformHandler 1.2

Thread management in asp.net core / kestrel

耗尽温柔 提交于 2020-01-12 06:51:06
问题 I'm troubleshooting performance / scalability issues with an asp.net app we've migrated to asp.net core 2.0. Our app is hosted on azure as an app service, and is falling over far too easily with any moderate traffic. One thing that's puzzling me is how multiple concurrent requests are handled. From what I've read here, Kestrel uses multiple event loops to handle your requests. But the actual user code is handled on the .net thread pool (that's from here). So, as an experiment - I've created a

Remove “Server” header from ASP.NET Core 2.1 application

巧了我就是萌 提交于 2020-01-12 04:37:07
问题 Is it possible to remove the Server Response header in a ASP.NET Core 2.1 application (running on Server 2016 with IIS 10)? I tried putting the following in the web.config: <system.webServer> <httpProtocol> <customHeaders> <add name="X-Frame-Options" value="sameorigin" /> <add name="X-XSS-Protection" value="1; mode=block" /> <add name="X-Content-Type-Options" value="nosniff" /> <remove name="X-Powered-By" /> <remove name="Server" /> </customHeaders> </httpProtocol> </sytem.webServer> The

Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'

会有一股神秘感。 提交于 2020-01-11 02:28:06
问题 I am trying to deploy my ASP.NET 5 WebApi to a remote server (Windows server 2008 R2) and am having trouble getting it to run correctly with IIS. project.json { "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": { "App.Data": "1.0.0-*", "App.Model": "1.0.0-*", "App.Repository": "1.0.0-*", "App.ViewModel": "1.0.0-*", "AutoMapper": "4.1.1", "Microsoft.AspNet.Authentication": "1.0.0-rc2-16009", "Microsoft.AspNet.Authentication.JwtBearer": "1.0.0-rc2-16009", "Microsoft.AspNet.Diagnostics

Get the compressed response length in ASP.net Core

只愿长相守 提交于 2020-01-04 07:10:21
问题 I've build a RESTful API using .net Core running on Kestrel. I've just enabled compression using "GzipCompressionProvider" middleware as described here. I'm also using a custom logger that logs all requests/responses to a DB with the response and request lengths as per below: public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); var provider = new

Blazor Windows Authentication on Kestrel works locally only? An anonymous request was received in between authentication handshake requests

大城市里の小女人 提交于 2020-01-03 01:59:07
问题 I created a Blazor application with Windows authentication and hosting with Kestrel/Negotiate following the steps. Create Blazor app with Windows Authentication Create a Blazor application using Visual Studio 2019 (16.4.0). (Windows Authentication, https) Support Windows Authentication using Negotiate and Kerberos Following the steps to make all work when running using Kestrel. Import NuGet package Microsoft.AspNetCore.Authentication.Negotiate Add the following code in ConfigureService() in

Problems running/configure self hosted console application (ASP.net core 2.1, Kestrel) with public certificate on a windows webserver

≡放荡痞女 提交于 2020-01-02 17:54:07
问题 I have developed various webservices in the past (VB ASP.net web-api applications) with https for production. I have done the development with http and then setup https on the production servers. To setup a port on the production server for https and the certificate, I have: Imported a public certificate in the certificate store on the windows server configured a specific port for https with netsh. E.g: netsh http add urlacl url=https://+:22224/ user=everyone bound the certificate (over the

Asp.net Core RC2 how to disable Transfer-Encoding: chunked on response

ⅰ亾dé卋堺 提交于 2020-01-02 09:31:51
问题 I'm having issues with certain http clients (Matlab and KDB) having problems with chunked http responses. Is there a way to disable chunked responses in Kestrel? 回答1: Specify the content-length for responses. This may require buffering. 来源: https://stackoverflow.com/questions/37839877/asp-net-core-rc2-how-to-disable-transfer-encoding-chunked-on-response

Asp.net Core RC2 how to disable Transfer-Encoding: chunked on response

折月煮酒 提交于 2020-01-02 09:31:31
问题 I'm having issues with certain http clients (Matlab and KDB) having problems with chunked http responses. Is there a way to disable chunked responses in Kestrel? 回答1: Specify the content-length for responses. This may require buffering. 来源: https://stackoverflow.com/questions/37839877/asp-net-core-rc2-how-to-disable-transfer-encoding-chunked-on-response