Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'System.Net.Http.HttpClient' is not defined.

Source Error:


Line 843:        '"http://localhost:36487/api/SvcClient"
Line 844:        'authURL = "https://webapidev.pma.com/api/SvcClient" 
Line 845:        Using client As System.Net.Http.HttpClient = New System.Net.Http.HttpClient
Line 846:            Dim byteArray = Encoding.ASCII.GetBytes(sUser & ":" & sPass)
Line 847:            client.DefaultRequestHeaders.Authorization = New System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray))

Source File: C:\home\site\wwwroot\App_Code\MyClassData.vb    Line: 845







Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0