Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Written a windows application to read a MySql database table within for loop, I am trying to send SMSs to our members using web API supplied by the service provider.

The program sending the first 2 SMS and also phones are receiving the message. From the 3rd row, I am getting an exception error "System.Net.WebException: The operation has timed out at System.Net.WebClient.OpenReead(Uri address) at Ssytem.Net.WebClient.OpenRead(string address) in....."

I am expected to send more than 1000 SMSs.

Please anybody give me a solution for this. Note that the service provider is not in the position to help me.

Regards and advance thanks
Yuvaraj
yuva2405@gmail.com

What I have tried:

Changed the phone nos in the rows of MySQl table. Still it is sending the first 2 rows information through SMS. I am getting the phone no. also from the table
Posted
Updated 27-Mar-16 7:08am
Comments
pt1401 27-Mar-16 13:09pm    
Without any details of your code, which service provider you're using, or the API details, I doubt that anyone is going to be able to help.

1 solution

If they can't help you then you need to build in some delays\retries. So if you get that exception wait maybe three seconds and try again. I suspect this is as issue with the service though so you don't use it to quickly spam loads of numbers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900