I am trying to the get functionality to send SMS using Twilio working in my asp.net 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 twilio.com/console
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?")
Console.WriteLine(message.Sid)
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
User contributions licensed under CC BY-SA 3.0