Detect IIS in-proc from UseKestrel
Open
affected-very-few
area-networking
enhancement
help wanted
severity-nice-to-have
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
Today, if you call `UseIIS` and `UseKestrel`, we detect this case and if you're running in-proc we throw. We should consider moving this check in to kestrel itself. The layering isn't the cleanest but it's not a big deal to check if the process name is `w3wp` in `UseKestrel`. https://github.com/aspnet/AspNetCore/issues/12944 appears to be a customer getting into this situation.
We should also provide an override option for when you **really** know that you want to use Kestrel inside `w3wp`.
Contributor guide
Assessment
This issue has not been assessed yet.