Twilio MessageResource.Create line gives this vbc: BC2010 error


I am trying to the get functionality to send SMS using Twilio working in my application. Everything seems to work fine - but when I get the "Dim message=MessageResource.Create" line, I get this error:

vbc : Command line error BC2010 : compilation failed : '0xC0000005'

I have tried to install and reinstall packages but nothing is working. Here is the entire snippet:

Protected Sub SendMessage()
        ' Find your Account Sid and Auth Token at
        Const accountSid = "ACdxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        Const authToken = "d94xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        TwilioClient.Init(accountSid, authToken)

        Dim toNumber = New PhoneNumber("+1234567899")
        Dim message = MessageResource.Create(toNumber, from:=New PhoneNumber("+1415xxxxxxx"), body:="This is the ship that made the Kessel Run in fourteen parsecs?")

    End Sub

I have installed the Twilio 5.35 package as well as JWT 1.3.4 and NewtonSoft.Json v9.0.1. I am running .net framework 3.5

asked on Stack Overflow Nov 9, 2019 by Lana Pieczynski • edited Nov 10, 2019 by halfer

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0