Facing some error while using license file

when i am using the given code for trial license

Aspose.Email.License license = new Aspose.Email.License();
license.SetLicense(“Aspose.Email.xml”);

it generate the below error:

System.InvalidOperationException: 'Failed to set license. Details: Index was outside the bounds of the array.

@satveer.singh,

We have investigated the issue at our end. We have used Aspose.Email license with latest version of Aspose.Email. We are unable to reproduce the issue. Please try again at your end by applying the license to Aspose.Email. Sample code snippet that we used to set the license is given below for your reference.

CODE:

Aspose.Email.License _lic = new Aspose.Email.License();
_lic.SetLicense(@"Aspose.Email.lic");