开发者社区> 问答> 正文

邮件推送时,本地调试和国内服务器上都没问题,但在香港服务器会报错GetAcsResponse

在用邮件推送功能时,在本地调试和国内服务器上都没有问题,但在香港服务器上跑就会报错:

调用这句时,抛出异常: SingleSendMailResponse httpResponse = client.GetAcsResponse(request);

请问大家是哪里的问题? 用的AccessKey等都是一样,没有问题。

抛出异常:

[XPathException: 表达式的计算结果必须为节点集。] MS.Internal.Xml.XPath.XPathParser.ParseNodeTest(AstNode qyInput, AxisType axisType, XPathNodeType nodeType) +582 MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNode qyInput) +346 MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +27 MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput) +226 MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput) +27 MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput) +29 MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput) +29 MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput) +29 MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput) +29 MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput) +27 MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput) +27 MS.Internal.Xml.XPath.XPathParser.ParseExpresion(AstNode qyInput) +32 MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion) +78 System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver) +61 System.Xml.XPath.XPathNavigator.Select(String xpath) +18 System.Xml.XmlNode.SelectNodes(String xpath) +75 Aliyun.Acs.Core.Reader.XmlReader.Read(XmlNode element, String path, Boolean appendPath) +167 Aliyun.Acs.Core.Reader.XmlReader.Read(XmlNode element, String path, Boolean appendPath) +566 Aliyun.Acs.Core.Reader.XmlReader.Read(String xml, String endpoint) +177 Aliyun.Acs.Core.DefaultAcsClient.ReadError(AcsRequest1 request, HttpResponse httpResponse, Nullable1 format) +154 Aliyun.Acs.Core.DefaultAcsClient.ParseAcsResponse(AcsRequest`1 request, HttpResponse httpResponse) +229 Tunynet.Common.ValidateCodeService.EmailSend(IUser user, String subject, MailMessage model, Boolean change, String newEmailAddress)

展开
收起
1198916606214699 2020-07-18 08:46:12 1036 0
1 条回答
写回答
取消 提交回答
  • 登陆香港服务器后,出现黑屏或无法显示桌面时,需要激活远程桌面中的任务管理器(按Ctrl+Alt+End键即可)。

    2、点击激活窗口中—任务管理器,查看,并且结束进程标签中的进程。

    3、最后在“任务管理器”窗口中选择“文件”—“新建任务(运行…)”—“浏览”,并在浏览中选“C:\WINDOWS

    ”程序—按“确定”,这样就可以远程连接香港服务器了。

    方法2、

    如果大家按照上述方法设置后,仍然不行的话,可以使用增强的3389远程登录香港服务器,这种方法基本都可以连接成功的。

    2021-02-15 20:45:02
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS块储存产品全面解析 立即下载