RemoteException wrapping System.MissingMethodException: Method not found: 'Twilio.Rest.Api.V2010.Account.MessageResource

Getting the following error while runnign Send SMS activity of Twilio package, please advise.

20.4.0-beta.472

Source: Send sms message

Message: Method not found: ‘Twilio.Rest.Api.V2010.Account.MessageResource Twilio.Rest.Api.V2010.Account.MessageResource.Create(Twilio.Types.PhoneNumber, System.String, Twilio.Types.PhoneNumber, System.String, System.String, System.Collections.Generic.List1<System.Uri>, System.Uri, System.String, System.Nullable1<System.Decimal>, System.Nullable1<Boolean>, System.Nullable1, System.String, System.Nullable1<Boolean>, System.String, ContentRetentionEnum, AddressRetentionEnum, System.Nullable1, Twilio.Clients.ITwilioRestClient)’.

Exception Type: System.MissingMethodException

RemoteException wrapping System.MissingMethodException: Method not found: ‘Twilio.Rest.Api.V2010.Account.MessageResource Twilio.Rest.Api.V2010.Account.MessageResource.Create(Twilio.Types.PhoneNumber, System.String, Twilio.Types.PhoneNumber, System.String, System.String, System.Collections.Generic.List1<System.Uri>, System.Uri, System.String, System.Nullable1<System.Decimal>, System.Nullable1<Boolean>, System.Nullable1, System.String, System.Nullable1<Boolean>, System.String, ContentRetentionEnum, AddressRetentionEnum, System.Nullable1, Twilio.Clients.ITwilioRestClient)’.
at Twilio.Workflow.Activities.SendSmsMessage.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

1 Like

Hello! Have you tried to also ask a question on the component’s page on the Marketplace? Can you please share the component link here?

Please check out this recently released new activity package:

its not work, still happen this error

If someone wanders here in search for the solution of this problem - you need to use CreateMessageOptions object.
We’ve had the same issue after updating to the latest Twilio nuget package. The following fix worked. We were not able to make the previous approach with creating MessageResource without CreateMessageOptions help.

var options = new CreateMessageOptions(new PhoneNumber(destPhoneNumber))
{
    From = new PhoneNumber(senderPhoneNumber),
    Body = messageBodyText
};
var messageResponse = await MessageResource.CreateAsync(options);
2 Likes

@a_ilyin Thanks, man!