CodeProject.AI Server ver 2.8.0 install issue?

hapstabu

Getting the hang of it
Aug 29, 2020
89
52
US
Since the CodeProject team moved to GitHub, I have had a lot of problems with the Windows version of the program.
Initially, on reboot of the machine, or on manual start, the service would not start.
When this happened, I tried to uninstall and reinstall the program.
I now find that on install, the CodeProject\AI\Modules folder does not exist.
I also see that when I uninstall the program, the CodeProject.AI Server service in the services.msc is still there.
But when I run SC QC to search for the CodeProject.AI Server service, I get a result that there is no such service installed.
Has anyone else seen any issues like this since the move to GitHub?

Sent from my iPlay_50 using Tapatalk
 
Since the CodeProject team moved to GitHub, I have had a lot of problems with the Windows version of the program.
Initially, on reboot of the machine, or on manual start, the service would not start.
When this happened, I tried to uninstall and reinstall the program.
I now find that on install, the CodeProject\AI\Modules folder does not exist.
I also see that when I uninstall the program, the CodeProject.AI Server service in the services.msc is still there.
But when I run SC QC to search for the CodeProject.AI Server service, I get a result that there is no such service installed.
Has anyone else seen any issues like this since the move to GitHub?

Sent from my iPlay_50 using Tapatalk
I installed version 2.8.0 for the umpteenth time, the service did not install.

I tried to manually install the service. I got this result:


C:\Windows\Microsoft.NET\Framework\v4.0.30319>Installutil.exe "C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"
Microsoft (R) .NET Framework Installation utility Version 4.8.9037.0
Copyright (C) Microsoft Corporation. All rights reserved.

Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file://C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe' or one of its dependencies. The module was expected to contain an assembly manifest..

C:\Windows\Microsoft.NET\Framework\v4.0.30319>

Finally, I went back in all the versions I have on the machine, and installed CodeProject.AI Server version 2.5.1.
It installed and started the service, installed the modules, and is now working fine with BlueIris.

Doesn't show the count in the YOLOv5 .NET status bar, I think that was a bug in that version. Ok, it is actually working.

Sent from my iPlay_50 using Tapatalk
 
I installed version 2.8.0 for the umpteenth time, the service did not install.

I tried to manually install the service. I got this result:


C:\Windows\Microsoft.NET\Framework\v4.0.30319>Installutil.exe "C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"
Microsoft (R) .NET Framework Installation utility Version 4.8.9037.0
Copyright (C) Microsoft Corporation. All rights reserved.

Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:/C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe' or one of its dependencies. The module was expected to contain an assembly manifest..

C:\Windows\Microsoft.NET\Framework\v4.0.30319>

Finally, I went back in all the versions I have on the machine, and installed CodeProject.AI Server version 2.5.1.
It installed and started the service, installed the modules, and is now working fine with BlueIris.

Doesn't show the count in the YOLOv5 .NET status bar, I think that was a bug in that version. Ok, it is actually working.

Sent from my iPlay_50 using Tapatalk
Does anyone remember what version they changed the directory structure for Code project.AI Server?
I expect I will start to have problems with that version.
I am installing versions from 2.5.1 to present, and finding that the service is properly installed and started.
However, if I try to install any modules, I get 404.
It's like the people at the CodeProject organization just took down the servers.
If I then go back to try version 2.8.0, the service does not install or start.

Sent from my iPlay_50 using Tapatalk
 
I had to run "C:\Program Files\CodeProject\AI\setup.bat" the first time I installed 2.8.0 as it requires the 8 .net . Run that and then rerun the 2.8 setup. I just installed it fine 2 days ago on my test machine. I also had to edit the "C:\ProgramData\CodeProject\AI\modulesettings.json" in order to have the service start on reboot.

1731085489597.png1731085489597.png
 
I had to run "C:\Program Files\CodeProject\AI\setup.bat" the first time I installed 2.8.0 as it requires the 8 .net . Run that and then rerun the 2.8 setup. I just installed it fine 2 days ago on my test machine. I also had to edit the "C:\ProgramData\CodeProject\AI\modulesettings.json" in order to have the service start on reboot.

View attachment 206796View attachment 206796
Yes. I did have version 2.8.0 running for several weeks.
I had installed .NET version 8 when I initially installed version 2.8.0 in August, I believe. It was running fine until Wednesday, September 30 when it just quit.
.NET version 8 is currently installed on the machine.
Many times when I try to install version 2.8.0, it seems to fail to install the service.
At one point I had run SC QC CodeProject.AI Server, which reported that there was no such service installed.
At that time, even the list in services.msc showed the service.
I am now running version 2.5.4. On install of that version, I see "Installing Windows Service". Then, the desktop loads, installs the modules and everything works as expected.
When I uninstall version 2.5.4 and install version 2.8.0, I again get the error 1053 The service did not start in a timely fashion.
Then if I use SC QC to search for the service, it replies there is no service installed.
If I try to install the Coral module, I get the Numpy wrong version. I don't want to deal with that.
I also at one point ran the very 2.8.0 docker container, it worked fine as well.
I actually miss the days when I ran Deepstack on a Jetson Nano.
That ran so long I went for about 8 months without even touching the Jetson, so long that I forgot how to deal with it.
Unfortunately, I tried it on my Ubuntu machine, and it is having trouble as well. Of course, the container is 4 years old. There have been updates to Docker since then.
Frigate NVR version 14 is working fine on the Ubuntu machine. I may just use Blue Iris to do 24*7 recording, and leave it at that. Leave Frigate to send the alerts.


Sent from my iPlay_50 using Tapatalk
 
I just did the same thing going from 2.6 to 2.8 and found it was missing a dot net dependency and would not start. Check the windows event log, will have a link to download the dependency.
 
  • Like
Reactions: scoob8000
I just did the same thing going from 2.6 to 2.8 and found it was missing a dot net dependency and would not start. Check the windows event log, will have a link to download the dependency.
I just gave it another go. I found the .asp net package missing and installed it then got a different error. Found a link in event viewer that we need .net 8.0.11. Installed it and I'm good to go now!
 
Last edited:
  • Like
Reactions: jrbeddow
I also found that I had to update .NET 8.0 to get the CPAI version 2.8.0 service to start, thanks to a user on the GitHub site.
Again, I don't understand how I was running the 2.8.0 version from 8/16 to 10/30, and suddenly it quit.
The program running on my machine should not have re written itself to require a newer version of .NET.
I remember reading a post from a user a while ago relating to the program "phoning home".
It seems suspicious to me that this occurred on 10/30/2024 in the midst of the change to GitHub.
Who knows?
I just hope it keeps working, as there doesn't seem to be another option at this time.


Sent from my iPlay_50 using Tapatalk
 
It is driving me nuts! I understand it's a free program but, it hasn't been working since 2.6.5 version. I tried everything from clean installation, clear cache.
Hello Hina Chow:
This is a really old thread.
Are you aware that some developers for Code Project AI Server have moved the project to Git Hub?

(None of the information or code can be found at the original Web site.) (It's too bad that all the discussions have been lost.)

You can find it here:

My understanding is that as they moved to Git Hub, there were a couple of versions that were not working well due to installation issues.
I believe that the latest version, 2.9.5, has resolved the installation issues.

I have been running 2.9.5 for several weeks now without any problems. I was able to install 2.9.5 by stopping the Blue Iris service, uninstalling the Code Project AI Server program, and deleting the Program Files\CodeProject and the Program Data\CodeProject folders, and running the version 2.9.5 installation file. Then I rebooted the machine.

I did have one time that CodeProject AI Server just quit, at about 400,000 inferences. The server was running, but it stopped returning any results to Blue Iris. Manually using the explorer in CodeProject didn't return results either. I fixed it by simply restarting the CodeProject server service.

So try installing version 2.9.5, you may have better luck.

Sent from my iPlay_50 using Tapatalk
 
  • Like
Reactions: aesterling