if the GetServerVariable feature is enabled,
ctx.Features.Get<IServerVariablesFeature>()
then most likely your 3rd party handler is not setting the value before asp.net core reads it. check module order, and events
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Converted a .net 4.7.1 mvc web app to .net core 7, hosted on iis 10 , in process. A single sign on service sets a server variable that I need to access. When I use HttpContext.GetServerVariable, the value is always null.
I have confirmed using an aspx page under .net 4.7.1 framework on the server that the server variable is being set and accessible to IIS, it just does not work when using .net core 7.
thanks
if the GetServerVariable feature is enabled,
ctx.Features.Get<IServerVariablesFeature>()
then most likely your 3rd party handler is not setting the value before asp.net core reads it. check module order, and events