Azure.Communication.Sms.1.0.1 package does not work with Visual Basic

Lino Vlacic 41 Reputation points
2021-07-06T23:25:09.6+00:00

Hi,

My asp.net Frameworks app in Visual Basic has Azure.Communication.Sms.1.0.1 installed and app compiles and builds fine.

But when attempting to send SMS text, I get errors. I was told this does not work with Visual Basic. It works with c-sharp.

Can anyone tell me how to get around this problem. I am a VB guy - not c#. Do I need to create and call an API that will execute
the few lines of code in c#? And how would I go about doing that?

Thank you for any help.

Azure Communication Services
Windows development | Windows API - Win32
Developer technologies | VB
0 comments No comments
{count} votes

Answer accepted by question author
  1. ajkuma 28,051 Reputation points Microsoft Employee Moderator
    2021-07-08T04:47:01.923+00:00

    @Lino Vlacic ,

    To benefit the community, posting our offline discussion.

    Issue: Unable to send SMS message from the Application written in Visual Basic.

    Cause: SMS SDK is written in C# thus it does not support Visual Basic.
    Also, sending SMS message was not supported by the phone number that was initially used.

    Resolution: Wrote SMS send function in C# and added it to Visual Basic project as a module.
    Also, a toll-free number that can send & receive SMS message was bought.

    ACS doesn’t support visual basic directly, so the recommend option is to just using REST APIs.
    https://learn.microsoft.com/azure/communication-services/concepts/sdk-options

    For a reference, use the API call sample, shared.

    Kindly be assured, your feedback has been cascaded to our product engineering team.

    -----------------------------------------------------------------------------------------------------------------------------------

    To benefit the community, find the right answers, please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.