Skip to main content
Nintex Community Menu Bar

Windows could not start the K2 Configuration Service service on local Computer

  • February 16, 2021
  • 0 replies
  • 145 views

Forum|alt.badge.img+6

Issue

When trying to start K2Configuration Service, the following error may be thrown:

 

Windows could not start the K2 Configuration Service service on local Computer Error 1064: An exception occurred in the service when handling the control request.21118i302C476F7DFB96CF.png

 

Error Code

In Windows Event log, the following error is present:
Application: SourceCode.Configuration.Api.exe CoreCLR Version: 4.700.20.47201 .NET Core Version: 3.1.9 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentException: The string argument 'connectionString' cannot be empty. at Microsoft.EntityFrameworkCore.Utilities.Check.NotEmpty(String value, String parameterName)...21119i67BC9F40B7CC5BD8.png

Resolution

The issue could be caused by ASPNETCORE_ENVIRONMENT Windows Environment Variables.  This environment variable causes K2 Configuration service to look at incorrect config file(appsettings.Production.json).   Removing this environment resolves the issue.

 

21120i584BCC777EF4252D.png

 

Additional Information

Related Links