[英]Could not load type 'AgencySystem' from assembly 'EPaymentInvoicing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
[英]Could not load type 'HelloSign.Client' from assembly 'HelloSign, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
我正在打招呼。
您能找出問題出在哪里嗎? 我搜索了很多,但沒有找到相同的內容。
[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 });
}
看來您無法加載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/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.