Vb.net non mvc ERROR

am working on normal VB project "not mvc " and get this error

error is

An exception of type ‘System.MissingMemberException’ occurred in Microsoft.VisualBasic.dll but was not handled in user code

Additional information: Public member ‘First’ on type ‘Collection(Of SignatureDocumentRecipient)’ not found.

code is

Public document As Object
Public Sub Page_Load(sender As Object, e As EventArgs)

    document = FluentSignature.Document() _
        .FileName("Invoice_14_2_2016_105934_210.pdf") _
        .SignedFileName("sample_signed.pdf") _
        .AddRecipient(FluentSignature.Recipient() _
            .AddField(FluentSignature.Field() _
                .Name("Signature1") _
                .Mandatory(True) _
                .LockDuringSign(False) _
                .Type(SignatureFieldType.Signature) _
                .AddLocation(FluentSignature.Location() _
                    .Page(1) _
                    .LocationWidth(150) _
                    .LocationHeight(50) _
                    .LocationX(Convert.ToDouble(0.4)) _
                    .LocationY(Convert.ToDouble(0.3)) _
                ) _
            ) _
        ) _
        .Create()

    Groupdocs.Web.UI.Signature.GroupdocsSignature.Signature("#groupdocs-signature") _
        .DocumentGuid(document.Guid) _
        .RecipientGuid(document.SignatureDocumentRecipients.First().Guid) ' error in this line

End Sub

Hi,

Thank you for the code example. I can see that you have missed such declaration:

SignDocument = new SignDocument
{
    DocumentGuid = document.Guid,
    RecipientGuid = document.SignatureDocumentRecipients.First().Guid
};

Then you should use this object in the Signature method. For example as shown on the screenshot.

For more info please check WebForms example from this package.

Best regards.