Set license under Mono/Linux

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Conversion MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-conversion -- dnx GroupDocs.Conversion.Mcp --yes
Folders, licensing and more →

Sometimes under Mono/Linux when license is set from relative path unexpected exceptions are raised.

Under Mono/Linux use one of the following ways to set the license:

  1. Set license with absolute path e.g.:

    license.SetLicense("/home/<USERNAME>/conversion-sample-src/GroupDocs.Conversion.NET.lic");
    
  2. Provide license stream loaded from the license file e.g.:

    using(var licenseStream = new FileStream("GroupDocs.Conversion.NET.lic", FileMode.Open)) {
    
        license.SetLicense(licenseStream);
    
    }