Could not load type "System.Web.HttpContext" from assembly "System.Web"
Of course, if you are not in a web application, no way you can use the HttpContext.Current !
you can check if System.Web.HttpContext.Current is null or not, it's available only in web pages or web services.
Another issue is that the free community version seems to only work in .NET Framework and not .NET Core sadly.