错误报告
System.TypeInitializationException
HResult = 0x80131534
Message = Initializer type "AngleSharp.Configuration" threw an exception.
Source = AngleSharp
Stack trace:
in AngleSharp.Configuration.get_Default ()
in AngleSharp.BrowsingContext.NewFrom [TService] (TService instance)
in AngleSharp.Html.Parser.HtmlParser..ctor ()
in rsh.Parser_test..ctor () in Z: \ vs \ csharp \ prb \ rsh \ rsh \ Parser_test.cs: line 19
in rsh.Form1..ctor () in Z: \ vs \ csharp \ prb \ rsh \ rsh \ Form1.cs: line 18
in rsh.Program.Main () in Z: \ vs \ csharp \ prb \ rsh …
Run Code Online (Sandbox Code Playgroud) 我需要“ WinForm”应用程序来进行通信。
“ Webhook”计划从viber接收数据(事件),然后该数据将在应用程序“ WinForm”中使用。
我做了:
http://localhost:44836/Hook
; 如果我正确理解了该理论,则在执行之后"Postman" action. I click "SEND"
,该ViberProcess (HttpContext context)
方法应在HookController.cs
控制器中执行,并且代码应在处停止breakpoint
。
这没有发生。
文档Viber REST API
- 链接
题。
如何制作Webhook?
码 HookController.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
//
using System.Runtime.Remoting.Contexts;
namespace WebAppl1.Controllers
{
public class HookController : Controller
{
// GET: …
Run Code Online (Sandbox Code Playgroud)