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
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
870 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,619 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,727 questions
0 comments No comments
{count} votes

Accepted answer
  1. ajkuma 26,136 Reputation points Microsoft Employee
    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 Answers by the question author, which helps users to know the answer solved the author's problem.