Error: CodeProject.AI Server service is not a valid Win32 application

pepperfr

Getting the hang of it
Joined
Feb 8, 2015
Messages
96
Reaction score
36
Location
Ohio
Any ideas on how to solve this problem? I have installed the CodeProject AI Server on a Windows 10 PC and intend to use it with Blue Iris, but the CodeProject.AI Server service will not start. The Windows system event log showed the error below...

The CodeProject.AI Server service failed to start due to the following error:
CodeProject.AI Server is not a valid Win32 application.

When I try to manually start the CodeProject AI Server service, I get the following error:

Windows could not start the CodeProject AI Server service on the Local Computer.
Error 193: 0xc1
 

pepperfr

Getting the hang of it
Joined
Feb 8, 2015
Messages
96
Reaction score
36
Location
Ohio
I fixed the problem by opening the registry editor and navigating to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CodeProject.AI Server

I modified the ImagePath by adding quotes to the string. Specifically, I changed the ImagePath from this

C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe

to this

"C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"

I think the problem was that the ImagePath includes a space. I think on some systems having a space in the ImagePath can create problems with starting the CodeProject.AI Server.
 
Top