无法从程序集“ HelloSign,版本= 1.0.0.0,区域性=中性,PublicKeyToken =空”中加载类型“ HelloSign.Client”

时间:2018-06-19 14:27:42

标签: asp.net-mvc hellosign hellosign-api

我正在使用hello sign。

能否请您找出问题所在。我搜索了很多,但没有找到。

 [HttpPost]
    public ActionResult SendDocument(SendDocumentForm Form)
    {
        if (!ModelState.IsValid)
        {
            SendDocumentFormViewModel model = new SendDocumentFormViewModel();
            model.Form = Form;
            return View(model);
        }

        var client = new Client(HelloSignAPIKey);
        var request = new SignatureRequest();
        request.Subject = Form.Subject;
        request.Message = Form.Message;
        request.AddSigner(Form.SignerEmail, Form.SignerName);
        byte[] arreglo = new byte[Form.File.ContentLength];
        Form.File.InputStream.Read(arreglo, 0, Form.File.ContentLength);
        request.AddFile(arreglo, Form.File.FileName);
        request.TestMode = true;
        var response = client.CreateEmbeddedSignatureRequest(request, HelloSignClientID);
        var urlSign = client.GetSignUrl(response.Signatures[0].SignatureId);
        return RedirectToAction("Sign", new { url = urlSign.SignUrl });
    }

Here is the error message

1 个答案:

答案 0 :(得分:0)

您似乎无法加载HelloSign C#SDK。

关于您的错误: 无法从程序集“ HelloSign,版本= 1.0.0.0,文化=中性,PublicKeyToken =空”中加载类型“ HelloSign.Client”。

似乎SDK无法正确加载。 https://github.com/HelloFax/hellosign-dotnet-sdk

尝试直接对HelloSign API进行RestSharp调用 http://restsharp.org/