Stream exception - This stream does not support seek operations

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
string strUrl = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=seshu@sunlightit.com.com:India@123&senderID=TEST SMS&receipientno="+ContactNo+"&msgtxt="+Msg+"&state=4";
WebRequest request = HttpWebRequest.Create(strUrl);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream s = (Stream)response.GetResponseStream();
StreamReader readStream = new StreamReader(s);
string dataString = readStream.ReadToEnd();
response.Close();
s.Close();
readStream.Close();
when i am executing the code its hows an exception and message is not sending from the application.
i am not catching any exception using try and catch but in stream s the property s.length is not supported format exception it returns ..
pls Help Me its Urgent..
Thanks In Advance..

View the full article
 
Back
Top