当我尝试发送测试推送时,我得到以下响应
推送响应 推送已发送!
响应: 您的服务器返回:500 内部服务器错误
我接收推送通知的代码如下
namespace FourSquareService
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
[System.Web.Script.Services.ScriptService]
public class FourSquare : System.Web.Services.WebService
{
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string ReadFourSqurePush()
{
if (HttpContext.Current.Request != null)
{
return "Hello World";
}
return string.Empty;
}
}
}
任何人都可以帮助我吗?