SMS - Azure Communication Service

Dino Giuditta 20 Punti di reputazione
2024-05-13T12:35:22.5466667+00:00

Good morning Microsoft Support Team, I hope you can help me.

I'm trying to use Azure Communication Service to send SMS. I'm using a web application with Framework 4.6.1 in C# and I'm using your sample lines of code:

///////////////////////////////////////////////

using Azure.Communication.Sms;

SmsClient smsClient = new SmsClient(connStr);

            SmsSendResult sendResult = smsClient.Send(

            from: "XXX",

            to: "YYY",

            message: "ZZZ"

            );

///////////////////////////////////////////////

but I get the following error:

on localhost:

"Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy."

on the server:

The type initializer for "Azure.Core.ClientOptions" threw an exception.'

Can you tell me something more? Is this an already known and resolved error?

I didn't find any answers or solutions in the https://learn.microsoft.com forum

Thank you!!

Azure
Azure
Una piattaforma e un'infrastruttura di cloud computing per la creazione, la distribuzione e la gestione di applicazioni e servizi tramite una rete mondiale di data center gestiti da Microsoft.
37 domande
0 commenti Nessun commento
{count} voti

0 risposte aggiuntive

Ordina per: Più utili