Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/306.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# “gettinerror”;“服务器不可用”;向手机发送信息时_C#_Web Services_Sms - Fatal编程技术网

C# “gettinerror”;“服务器不可用”;向手机发送信息时

C# “gettinerror”;“服务器不可用”;向手机发送信息时,c#,web-services,sms,C#,Web Services,Sms,我尝试使用way2sms免费信息服务从c#中创建的网站向手机发送信息 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net; public partial class message : System.Web.UI.Page { pr

我尝试使用way2sms免费信息服务从c#中创建的网站向手机发送信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
public partial class message : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + *****88 + "&pwd=" + "****" + "&msg=" + "hello " + "&phone=" + 973*** + "&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();

    }
}
我犯了这样的错误

例外情况详情:

System.Net.WebException:远程服务器返回错误:(503) 服务器不可用。排队


有人帮忙吗?

你能检查一下你正在使用的短信服务器是否可用吗?可能有重复的
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();