-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert UseKestrel to ConfigureKestrel #7851
Comments
We might not have exact matches to this pattern inlined into topics; but just in case, I have a question along the lines that John asked on the PR ... In the non- var host = new WebHostBuilder()
.UseKestrel((context, options) => { ... })
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build(); Otherwise, I'm tracking down cases where As for samples, I've made a note to keep an eye out on 2.2 sample updates for any cases where this arises. We don't generally update samples for the next release until RTM (as u know, we don't have versioning for patch-updated samples), but I'll make sure (if I'm still here) that this gets addressed. |
@Rick-Anderson @scottaddie Hitting the need to avoid moniker-ranges within moniker-ranges now. These updates result in 1.x, 2.0/2.1, and 2.2 content, which I can do in a single file (it's taking on a Swiss 🧀 character) ...... ::: moniker range=">= aspnetcore-2.0"
**Begin 2.0 or later content**
::: moniker-end
::: moniker range=">= aspnetcore-2.2"
**Drop out for 2.2 or later content**
::: moniker-end
::: moniker range="= aspnetcore-2.0 || aspnetcore-2.1"
**2.0/2.1 content**
::: moniker-end
::: moniker range=">= aspnetcore-2.0"
**Back to 2.0 or later content**
::: moniker-end
::: moniker range="< aspnetcore-2.0"
**1.x content**
::: moniker-end There's still no concept of file versioning, right?
|
Yes, UseKestrel with WebHostBuilder is fine. |
It seems self contained builds with latest .net core sdk and configure kestrel do not setup a web server when calling builder.ConfigureKestrel, anyone else having this issue? If I comment out the ConfigureKestrel call, a web server spins up fine. Debugging locally in visual studio everything works fine calling builder.ConfigureKestrel... |
@jjxtra We only handle doc issues on this repo. Ask on the engineering repo, but they'll need a bit more info: Show them your code or put up a repro project on GH that demos the problem. State the framework error message. https://github.com/aspnet/AspNetCore/issues btw - It's ok to open a new doc issue from the feedback button at the bottom of any live topic. |
It was an issue with the ASPNETCORE_ENVIRONMENT variable being null and an exception in a background task. |
See aspnet/KestrelHttpServer#2760
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: