qq_35452632 2016-06-28 10:50 采纳率: 0%
浏览 2058

pc网站会员收费,用微信提供的demo例子(c#),点扫码支付报错

www.xs1949.com

图片说明
图片说明
图片说明

Server Error in '/' Application.

System.Net.WebException: The operation has timed out
  at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
  at System.Net.HttpWebRequest.GetRequestStream()
  at WxPayAPI.HttpService.Post(String xml, String url, Boolean isUseCert, Int32 timeout) in f:\WxPayAPI\WxPayAPI\lib\HttpService.cs:line 74

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: WxPayAPI.WxPayException: System.Net.WebException: The operation has timed out
  at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
  at System.Net.HttpWebRequest.GetRequestStream()
  at WxPayAPI.HttpService.Post(String xml, String url, Boolean isUseCert, Int32 timeout) in f:\WxPayAPI\WxPayAPI\lib\HttpService.cs:line 74

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[WxPayException: System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at WxPayAPI.HttpService.Post(String xml, String url, Boolean isUseCert, Int32 timeout) in f:\WxPayAPI\WxPayAPI\lib\HttpService.cs:line 74]
WxPayAPI.HttpService.Post(String xml, String url, Boolean isUseCert, Int32 timeout) in f:\WxPayAPI\WxPayAPI\lib\HttpService.cs:100
WxPayAPI.WxPayApi.UnifiedOrder(WxPayData inputObj, Int32 timeOut) in f:\WxPayAPI\WxPayAPI\lib\WxPayApi.cs:399
WxPayAPI.NativePay.GetPayUrl(String productId) in f:\WxPayAPI\WxPayAPI\business\NativePay.cs:52
WxPayAPI.NativePayPage.Page_Load(Object sender, EventArgs e) in f:\WxPayAPI\WxPayAPI\example\NativePayPage.aspx.cs:28
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +61
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1966

Version Information: Microsoft .NET Framework Version:4.0.30128; ASP.NET Version:4.0.30128.1

  • 写回答

1条回答 默认 最新

  • tokaikaibbs 2016-06-28 15:44
    关注

    The operation has timed out,麻花疼的服务器性能还不会出现响应超时的问题,你检查一下网络看通不通,最后把你请求的URL字符串完整的抛出来你复制到PC版微信的浏览器里手工访问看看是什么提示

    评论

报告相同问题?

悬赏问题

  • ¥15 Excel发现不可读取的内容
  • ¥15 UE5#if WITH_EDITOR导致打包的功能不可用
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面
  • ¥15 算法题:数的划分,用记忆化DFS做WA求调
  • ¥15 chatglm-6b应用到django项目中,模型加载失败
  • ¥15 CreateBitmapFromWicBitmap内存释放问题。