R – Scheduled task error


I am getting error in scheduled task :"http://localhost:4625/DataUpdater.aspx.Error Message:Object reference not set to an instance of an object."

Scheduledtask vbs script :

Call LogEntry()

Sub LogEntry()

    On Error Resume Next        

    Dim objRequest
    Dim URL

    Set objRequest = CreateObject("Microsoft.XMLHTTP")

    URL = "http://localhost:4625/DataUpdater.aspx"

    objRequest.open "POST", URL , false


    Set objRequest = Nothing

End Sub

Best Solution

If the error is coming back from Cassini/IIS then you should post the code in the .aspx / .aspx.cs file, and the line the error is occurring on.

Related Question