Licensing issues with the yFiles.NET Algorithms assemblies
TroubleshootingSummary
This article describes the most common licensing related problems with the yFiles.NET Algorithms assemblies.
Description
Since the yFiles.NET Algorithms assemblies contain no UI components, Visual Studio cannot generate the necessary license information automatically. Therefore, it is necessary the create or update the licensing information yourself.
Signs that the licensing information is incorrect
Incorrect or missing license information for the yFiles.NET Algorithms assemblies leads to the following symptoms:- A message that states the cause of the license failure is logged to both
System.Console.Outand the Visual Studio Output Window. - Nodes created by instances
yWorks.Algorithms.Graphdo not actually live in the graph, e.g.yWorks.Algorithms.Node#Graphalways yieldsnull, andGraph#Nodesis always empty. Trying to remove the node from the graph results in Lists with negative element counts. - No automatic layout is performed, e.g. when executing
IGraph#ApplyLayoutor the various convenience methods.
How to fix licensing problems
Please see Deployment - Licensing for an overview of our license mechanism for yFiles.NET.
In short, you need to perform the following steps:
- Make sure there is a file
yWorks.yFilesNET.[Development]License.xmlin the same directory as the yFiles assemblies. You do not have to include this file into your Visual Studio project. - If necessary, create a file
licenses.licxin your Visual Studio Project and include it as EmbeddedResource. - Into the
licenses.licxfile, insert a line- Versions ≥ 5.0:
yWorks.Algorithms.Graph, yWorks.yFilesNET.Algorithms - Versions < 5.0:
yWorks.yFiles.Algorithms.Graph, yWorks.yFilesNET.Algorithms
- Versions ≥ 5.0:
Categories this article belongs to:
yFiles.NET > Licensing
Applies to:
yFiles.NET: 4.0, 4.1, 4.2, 4.3, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6
Keywords:
Forms - yFiles.NET - License - Algorithms - Licensing - licx - Empty Graph - License errors