Free Support Forum -

License file not found GroupDocs.Search

        //initialize License
        GroupDocs.Search.License lic = new GroupDocs.Search.License();

        //Set license

I have placed the license file in the same path as the search dll and yet I still get the message.


Please try below code:

string path = System.IO.Path.GetDirectoryName(asm.Location);
License lic = new License();

Or you can load license file using absolute path:

string LicensePath = @"D:\license\GroupDocs.Search.lic";
License lic = new License();

Let us know if it helps.