I getting this error and I have no clue why I am pretty new to asp.net core so if you could take it easy on me that would be great.
string port = System.Web.HttpContext.Current.Request.ServerVariables["SERVER_PORT"];
ERROR: Severity Code Description Project File Line Suppression State Error CS0234 The type or namespace name 'HttpContext' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) Elearn C:\Users\source\elearn2Fin\Elearn\Elearn\Program.cs 29 Active