I'm developing a .NET Standard 2.0 class library in Visual Studio 2017 15.5 which at some point tries to call a Web Service. The way to authenticate is by using WSE 3.0 (Microsoft.Web.Services3).
Before the call, it crashes executing this instruction:
UsernameToken userToken = new UsernameToken(sUser, sPass, PasswordOption.SendHashed);
The error is:
Could not load type 'System.Web.HttpContext' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Does System.Web.HttpContext exist in .NET Standard? How can I solve this?