System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.IOException: There is not enough space on the disk. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count) at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer) at System.IO.FileStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at System.IO.StreamWriter.Dispose(Boolean disposing) at System.IO.TextWriter.Dispose() at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources) at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources) at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources) at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type) at System.Web.Services.Protocols.SoapServerType..ctor(Type type, WebServiceProtocols protocolsSupported) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Sending_SMS.net.webservicex.www.SendSMS.SendSMSToIndia(String MobileNumber, String FromEmailAddress, String Message) in d:\Mahesh\Maheshkumar P(trainee)\.net framework\ASP\workouts\Sending SMS\Web References\net.webservicex.www\Reference.cs:line 78 at Sending_SMS._Default.Button1_Click(Object sender, EventArgs e) in d:\Mahesh\Maheshkumar P(trainee)\.net framework\ASP\workouts\Sending
--ENJOY but always _Just think _Opponent as _Yourself before you Enjoy--!
From that post at codeproject, it seems that code is not either running to anybody or if running then doesn't send / receive any sms after reading comments regarding to that post at bottom of article.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net; using System.IO;
public partial class sending_sms2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {
Maheshkumarp...
Member
366 Points
117 Posts
Send SMS using asp.net c#
Feb 16, 2013 10:37 AM|LINK
Hi everyone,
I tried to send SMS using ASP.NET C# and googled and find the below link,
Sending-SMS-using-NET-through-a-Web-service
now I am getting the error "System.Net.WebException: The request failed with HTTP status 417"...
Kindly help me .... Also I want is this webservice method free....? Do I need to create any account as with way2sms...?
please clarify....
"Please Mark As Answer, If u find Helpful."
matifnadeem
Contributor
4694 Points
1108 Posts
Re: Send SMS using asp.net c#
Feb 16, 2013 10:44 AM|LINK
Hi Mahesh,
When using WebServices and calling some Web Methods, you may come across this exception:
This error occur when 100-Continue property is set to true. To resolve this issue try any one them technique. Putting this code before an web request:
Or adding the following lines to the web.config within
<system.net> <settings> <servicePointManager expect100Continue="false" /> </settings> </system.net>Let me know if any query still remains.
Cheers
M Atif Nadeem
Mark as Answer if you got right thing
Read my blog | Follow me on LinkedIn
Maheshkumarp...
Member
366 Points
117 Posts
Re: Send SMS using asp.net c#
Feb 16, 2013 10:51 AM|LINK
Hi ,
now I am getting this error,
"Please Mark As Answer, If u find Helpful."
matifnadeem
Contributor
4694 Points
1108 Posts
Re: Send SMS using asp.net c#
Feb 16, 2013 10:57 AM|LINK
Hi again,
Try this link
Or if issue is not resolve then please post your code here.
Cheers
M Atif Nadeem
Mark as Answer if you got right thing
Read my blog | Follow me on LinkedIn
Maheshkumarp...
Member
366 Points
117 Posts
Re: Send SMS using asp.net c#
Feb 16, 2013 11:10 AM|LINK
Hi,
I am just using the same code in this link (http://www.codeproject.com/Articles/7346/Sending-SMS-using-NET-through-a-Web-service) ......
"Please Mark As Answer, If u find Helpful."
matifnadeem
Contributor
4694 Points
1108 Posts
Re: Send SMS using asp.net c#
Feb 16, 2013 11:39 AM|LINK
Hi again,
From that post at codeproject, it seems that code is not either running to anybody or if running then doesn't send / receive any sms after reading comments regarding to that post at bottom of article.
Try any other resource full links like
Cheers
M Atif Nadeem
Mark as Answer if you got right thing
Read my blog | Follow me on LinkedIn
Jack Hunt
Participant
1270 Points
713 Posts
Re: Send SMS using asp.net c#
Apr 29, 2013 10:48 AM|LINK
Sms Sending Using ASP.NET Click Here
1.two textbox and one button
.cs
-----
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using System.IO;
public partial class sending_sms2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
public void send(string uid, string password, string message, string no)
{
HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password +
"&msg=" + message + "&phone=" + no + "&provider=way2sms");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
protected void Button1_Click(object sender, EventArgs e)
{
//for (int i = 0; i < 10; i++)
//{
send("YOURUSERNAME","PASSWORD",TextBox1.Text,TextBox2.Text);
//}
ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('sms sent successfully...');", true);
}
}
mit's Website
Mitesh N Vaishnav