Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class Starter
    Inherits System.Web.Services.WebService
    <WebMethod()>
    Public Shared Sub Invoke()
        Dim webForm = New WebForm1()
        ScriptManager.RegisterStartupScript(webForm, GetType(Page), "Execute", "document.getElementById('confirm').click;", True)
        HttpContext.Current.Response.Redirect("Dashboard.aspx") 'System.NullReferenceException
        MsgBox(HttpContext.Current IsNot Nothing) 'False
    End Sub
End Class
I have already googled for other questions (here or in other websites). Many have mentioned about EnableSession = True. I have tried it in my code but an error message was shown after that:
'EnableSession' is not declared. It may be inaccessible due to its protection level.
How can I fix the HttpContext.Current? Do I need to add any configuration settings to web.config for asmx web service? Thanks