Creating a package (Object reference not set to an instance of an object)
Monday, November 14, 2016 at 12:54pmHi!
I am trying to create an eSignLive package using the C# SDK.
Below is the error I get when "sending" my package. Apparently, it seems that I forgot to assign a value in my package
{System.NullReferenceException: Object reference not set to an instance of an object.
at Silanis.ESL.SDK.SignerConverter.ToAPIRole(String roleIdName)
at Silanis.ESL.SDK.DocumentPackageConverter.ToAPIPackage()
at Silanis.ESL.SDK.EslClient.CreatePackage(DocumentPackage package)
here is my code :
Document document = new Document
{
Id = $"123456",
Content = Convert.FromBase64String(base64StringElement?.Value),
Name = fileNameElement?.Value,
};
List documentsPackage = new List();
documentsPackage.Add(document);
Signer signer = new Signer("[email protected]", "firstname", "lastname", new Authentication(AuthenticationMethod.EMAIL));
List sList = new List();
sList.Add(signer);
Signature s = new Signature("[email protected]", 1, 45, 572);
s.Id = new SignatureId("111");
documentsPackage[0].Signatures.Add(s);
PackageId packageId = eslClient.CreatePackage(package);
eslClient.SendPackage(packageId);
DocumentPackage documentPackage = eslClient.GetPackage(packageId);
Reply to: Creating a package (Object reference not set to an instance of an object)
Tuesday, November 15, 2016 at 05:34amReply to: Creating a package (Object reference not set to an instance of an object)
Monday, November 14, 2016 at 04:25pmReply to: Creating a package (Object reference not set to an instance of an object)
Tuesday, November 15, 2016 at 05:06amReply to: Creating a package (Object reference not set to an instance of an object)
Tuesday, November 15, 2016 at 05:40amReply to: Creating a package (Object reference not set to an instance of an object)
Tuesday, November 15, 2016 at 05:45amReply to: Creating a package (Object reference not set to an instance of an object)
Tuesday, November 15, 2016 at 05:48amReply to: Creating a package (Object reference not set to an instance of an object)
Tuesday, November 15, 2016 at 06:04amReply to: Creating a package (Object reference not set to an instance of an object)
Tuesday, November 15, 2016 at 11:10amReply to: Creating a package (Object reference not set to an instance of an object)
Tuesday, November 15, 2016 at 11:12am