Licensing Validation

Hello !

I followed the how-to and when I try to introduce the license key I got from you by mail I face the following error on command line:

Set-UALicense: Call failed with status code 500 (Internal Server Error): PUT http://localhost:1000/api/v1/License

and on the server command line I have the following:

 	[12:48:19 ERR] Connection id "0HLSPK3OQL95G", Request id "0HLSPK3OQL95G:00001AAA": An unhandled exception was thrown by the application.
System.Exception: License activation failed. No such host is known. No such host is known.
   at Licensing.LicenseKeyActivator.Activate(String licenseKey)
   at Licensing.LicenseManagerBase.InstallLicense(String licenseText)
   at UniversalAutomation.LicenseController.Put(License license) in /home/vsts/work/1/s/src/UniversalAutomation/Controllers/LicenseController.cs:line 50
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

any clues about what could generate that license validation issue ?

UAVersion 0.0.3-beta2
UDVersion 2.8.1

Same error on Poweshell 5.1 and pwsh core 7.0.0-rc.1

Thx !

1 Like

Mine was throwing that error too yesterday (before i re-installed) but most of the time I saw an error somehwere that said it was already licensed.

Check your folder:
C:\Users\%USERNAME%\AppData\Roaming\Universal Automation

There should be a license.lic file with the key inside of it. If not you might be able to manually create it and add the data. I’m not sure if thats best practice or recommended but thats where I found my license data for UA.

The issue is that it can’t communicate with ironmansoftware.com to activate the license. I’ll add this to the docs. We do have the ability to generate offline licenses so let me know if you’re in an internet restricted environment.

well, that’s the case then, they are pretty tough regarding internet access on servers so yes, if possible I’d love it !