Issue | The ServiceStack license is contained in the apiserver.exe.config file. This contains a single string field, servicestack::license which allows the ApiServer application to access the ServiceStack Text feature of .NET. Without this core package, the service will not start.
Errors seen in the ApiServer command line output:
C:\Program Files\RSA\ECAT\Server>ApiServer.exe System.TypeInitializationException: The type initializer for 'ServiceStack.Text. JsConfig' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ServiceStack.LicenseUtils' threw an exception. ---> ServiceStac k.LicenseException: This license has expired on 04/15/2016 and is not valid for use with this release. Please see servicestack.net or contact team@servicestack. net for more details. at ServiceStack.LicenseUtils.ValidateLicenseKey(LicenseKey key) at ServiceStack.LicenseUtils.RegisterLicense(String licenseKeyText) at ServiceStack.LicenseUtils..cctor() --- End of inner exception stack trace --- at ServiceStack.LicenseUtils.Init() at ServiceStack.Text.JsConfig..cctor() --- End of inner exception stack trace --- at ServiceStack.Text.JsConfig.InitStatics() at ServiceStack.Host.HttpListener.HttpListenerBase..ctor(String serviceName, Assembly[] assembliesWithServices) at ServiceStack.AppSelfHostBase..ctor(String serviceName, Assembly[] assembli esWithServices) at c.a.a.X?.?() at c.a.a.X?.?(String[] A_0, Boolean A_1)
Event Viewer Error:
Application: ApiServer.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: ServiceStack.LicenseException at ServiceStack.LicenseUtils.ValidateLicenseKey(ServiceStack.LicenseKey) at ServiceStack.LicenseUtils.RegisterLicense(System.String) at ServiceStack.LicenseUtils..cctor()
Exception Info: System.TypeInitializationException at ServiceStack.LicenseUtils.Init() at ServiceStack.Text.JsConfig..cctor()
Exception Info: System.TypeInitializationException at ServiceStack.Text.JsConfig.InitStatics() at ServiceStack.Host.HttpListener.HttpListenerBase..ctor(System.String, System.Reflection.Assembly[]) at ServiceStack.AppSelfHostBase..ctor(System.String, System.Reflection.Assembly[]) at c.a.a.Xᜁ.ᜃ() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()
|