You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
Today it's a common mistake for callers to reverse UseIISIntegration and UseUrls, breaking their app in IIS/Express and Azure.
Proposal, rather than having UseIISIntegration set the url immediately, set it later when Build is called (e.g. inside the ConfigureServices callback) or in the IStartupFilter via IServerAddressesFeature.
The text was updated successfully, but these errors were encountered:
Seems like a good idea. Today, you can check whether UseIISIntegration is activated in Program.Main() by checking whether whether the urls setting was changed after calling it. Technically, changing when we change the urls settings is breaking, but it probably won't affect too many apps.
It would be nice if there was still an easy workaround to figure out if the app is running behind IIS in Program.Main() after this change.
To disable Kestrel connection filters that are replaced by IIS modules perhaps. Admittedly it's probably not common to use a single code base to deploy with and without IIS, so I don't think this would break (m)any people.
Today it's a common mistake for callers to reverse UseIISIntegration and UseUrls, breaking their app in IIS/Express and Azure.
Proposal, rather than having UseIISIntegration set the url immediately, set it later when Build is called (e.g. inside the ConfigureServices callback) or in the IStartupFilter via IServerAddressesFeature.
The text was updated successfully, but these errors were encountered: