Hi, I’m trying to use groupdocs parser and getting the following exception of invalid license, note that I’ve a valid license, I’m using GroupDocs.Parser version 20.2.5
{“32110_5”:"{“ClassName”:“GroupDocs.Parser.Exceptions.GroupDocsParserException”,“Message”:“License is not valid”,“Data”:null,“InnerException”:null,“HelpURL”:null,“StackTraceString”:" at [\u0002](file://u0002/) .\u0003(Object \u0002)\r\n at \u0002 .\u0003()\r\n at \u0002 .\u0002(Object \u0002, UInt32 \u0003)\r\n at \u0002 .\u0005(Boolean \u0002)\r\n at \u0002 .\u0005()\r\n at \u0002 .\u0002(Object[] [\u0002](file://u0002/), Type[] [\u0003](file://u0003/), Type[] [\u0005](file://u0005/), Object[] \b)\r\n at \u0002 .\u0002(Stream \u0002, String [\u0003](file://u0003/), Object[] [\u0005](file://u0005/), Type[] [\b](file://b/), Type[] [\u0006](file://u0006/), Object[] \u000e)\r\n at \u0002 .\u0002(Stream \u0002, String [\u0003](file://u0003/), Object[] \u0005)\r\n at \u0002 .\u0002(Stream \u0002, String [\u0003](file://u0003/), Object[] \u0005)\r\n at GroupDocs.Parser.License.SetLicense(String filePath)\r\n at
@shak.ibrhm
Can you please share the license file in a private message and sample code?
@atirtahir3
yes, I’ve shared license file and sample code
@shak.ibrhm
Thank you for the details. We’ll now look into this scenario and let you know as there’s any update.
@atirtahir3
do you have any updates on the issue?
@shak.ibrhm
We couldn’t reproduce this exception at our end. Can you please share a simple console application using that issue could be reproduced. We tried your license (that is a GroupDocs.Total for .NET license) with multiple APIs including Parser but it works fine.
you could try reproducing it with following code snippet but it’s highly unlikely that it would, note that it doesn’t reproduce often, but when it does it throws exception on parserLicense.SetLicense(licensePath)
namespace groupdocstest
{
class Program
{
public void GroupdocsProvider(string licensePath)
{
GroupDocs.Conversion.License conversionLicense = new GroupDocs.Conversion.License();
conversionLicense.SetLicense(licensePath);
GroupDocs.Parser.License parserLicense = new GroupDocs.Parser.License();
parserLicense.SetLicense(licensePath); //throws exception here
}
static void Main(string[] args)
{
Program program = new Program();
program.GroupdocsProvider(@"C:\GroupDocs.Conversion.lic");
}
}
}
@shak.ibrhm
We still can’t reproduce it. Please try API version 20.8. See if updating to latest version resolves your issue.