The Operation Has time out problme while sending SMS
-
while I am sending SMS it give me Error Like "The Operation has time out " and I trace that error is in this line - "objStream = sResponse.GetResponse.GetResponseStream()" Following is my Code Dim sURL As String Dim objReader As StreamReader Dim objStream As Stream Dim sResponse As WebRequest sURL = " MyAPI" sResponse = WebRequest.Create(sURL) objStream = sResponse.GetResponse.GetResponseStream() Can Any one help what is wrong I don't understand because first time it not give me that error while I am sending second time it give me that error Help Me Please... Thank You
Haresh Prajapati
-
while I am sending SMS it give me Error Like "The Operation has time out " and I trace that error is in this line - "objStream = sResponse.GetResponse.GetResponseStream()" Following is my Code Dim sURL As String Dim objReader As StreamReader Dim objStream As Stream Dim sResponse As WebRequest sURL = " MyAPI" sResponse = WebRequest.Create(sURL) objStream = sResponse.GetResponse.GetResponseStream() Can Any one help what is wrong I don't understand because first time it not give me that error while I am sending second time it give me that error Help Me Please... Thank You
Haresh Prajapati
What is that URL supposed to be because what you have in there is not a URL and that's probably why your getting the timeout.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
What is that URL supposed to be because what you have in there is not a URL and that's probably why your getting the timeout.
A guide to posting questions on CodeProject
Click this: Asking questions is a skill. Seriously, do it.
Dave Kreskowiak -
while I am sending SMS it give me Error Like "The Operation has time out " and I trace that error is in this line - "objStream = sResponse.GetResponse.GetResponseStream()" Following is my Code Dim sURL As String Dim objReader As StreamReader Dim objStream As Stream Dim sResponse As WebRequest sURL = " MyAPI" sResponse = WebRequest.Create(sURL) objStream = sResponse.GetResponse.GetResponseStream() Can Any one help what is wrong I don't understand because first time it not give me that error while I am sending second time it give me that error Help Me Please... Thank You
Haresh Prajapati
I would advise you to examine very carefuly your use of the streams and the WebResponse -- also avoid trying to reuse them -- this is an inherently asynchronous process and trying to create an SMS bulk texting application is not what those classes are intended to do -- it is one thing to use them to mimic browser fetches, but quite another to use them statically for multiple texts. At the very least, close them and get them each time -- the Response -- are you reading to the end and closing the response?