nsanoir
1
//initialize License
GroupDocs.Search.License lic = new GroupDocs.Search.License();
//Set license
lic.SetLicense("GroupDocs.Search.lic");
I have placed the license file in the same path as the search dll and yet I still get the message.
@nsanoir,
Please try below code:
string path = System.IO.Path.GetDirectoryName(asm.Location);
License lic = new License();
lic.SetLicense(path+"/GroupDocs.Search.lic");
Or you can load license file using absolute path:
string LicensePath = @"D:\license\GroupDocs.Search.lic";
License lic = new License();
lic.SetLicense(LicensePath);
Let us know if it helps.