question

LinoVlacic-9295 avatar image
0 Votes"
LinoVlacic-9295 asked ajkuma-MSFT edited

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

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.

windows-apidotnet-visual-basicazure-communication-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ajkuma-MSFT edited

@LinoVlacic-9295,

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://docs.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’.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.