I have the following error:
The type initializer of "Neurotec.Licensing.NLicense"
threw an exception. in Neurotec.Licensing.NLicense.ObtainComponents(String address, Int32 port, String components)
Part of code:
if (!NLicense.ObtainComponents("/local", 5000, components))
{
throw new ApplicationException(string.Format("Could not obtain licenses for components: {0}", components));
}
if (NLicense.ObtainComponents("/local", 5000, AdditionalComponents))
{
components += "," + AdditionalComponents;
}