How do I resolve this
I get this error on HttpContext, when I try to get the server Name
httpcontext is not declared it may be inaccessible due to its protection level
Dim strServerName As String = If((HttpContext.Current IsNot Nothing), HttpContext.Current.Request.ServerVariables("LOCAL_ADDR").ToString(), Environment.MachineName)

Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 28, 2019, 4:28 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 28, 2019, 4:30 AM EDT