CodeProject Ai Server 2.0.7 BlueIris Error 1053

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
951
Exactly the issue I'm dealing with. I can install and run v2.0.2 successfully. Any released version after that installs successfully but doesn't run. Really have no idea why.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
951
Every time I install any version after 2.0.2, I get the error shown below. This is my most recent to install 2.0.6. Very frustrating.

1674946488086.png

Application: CodeProject.AI.Server.exe
CoreCLR Version: 7.0.222.60605
.NET Version: 7.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException: The type initializer for 'CodeProject.AI.SDK.Common.SystemInfo' threw an exception.
---> System.Management.ManagementException: Invalid class
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at System.Linq.Enumerable.CastIterator[TResult](IEnumerable source)+MoveNext()
at CodeProject.AI.SDK.Common.SystemInfo..cctor()
--- End of inner exception stack trace ---
at CodeProject.AI.SDK.Common.SystemInfo.get_OperatingSystem()
at CodeProject.AI.API.Server.Frontend.Program.Main(String[] args)
at CodeProject.AI.API.Server.Frontend.Program.<Main>(String[] args)
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
951
This is the procedure I followed to resolve my issue.

My WMI repository was corrupt. I ran the following procedure and repaired the WMI. Once that was done, v2.0.7 installed and runs successfully.

Procedure to repair corrupted WMI that worked for me
• Disable and stop the winmgmt service
• Remove or rename C:\Windows\System32\wbem\repository
• Enable and start the winmgmt service
• Open Command Prompt as Administrator
• Run the following commands:
cd C:\Windows\System32\wbem\
for /f %s in ('dir /b *.mof') do mofcomp %s
NOTE: This will take a minute or so to complete.
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s

Hope this helps others with the same issue!
 

Zafer

n3wb
Joined
Apr 25, 2018
Messages
1
Reaction score
5
Hey!

I had the same issue. I tried to repair, reinstall, downgrade, manually track down all files related and send them to oblivion, but nothing worked.

What solved it for me was the previous solution by @105437 of repairing the WMI.

However @105437's code is more specific and includes a step of compiling the en-us language localization files so here is a more general that should work on all systems.

  1. Open the Services tool and disable/Stop the WMI(Windows Management Instrumentation) service.
  2. Open a cmd prompt with admin privileges and re-register the WMI components by running the following commands, one at a time:
    Code:
    cd %windir%\system32\wbem
    for /f %s in ('dir /b /s *.dll') do regsvr32 /s %s
    for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
  3. Enable and restart the WMI service in Services tool.
  4. Reboot the system (not sure if this step is necessary but I did it just to be sure)
  5. Open CodeProject Ai server installation and repair the installation if it is already installed, or install it if it is not installed.

Hope this helps..
 

chenzomo

n3wb
Joined
Apr 1, 2021
Messages
2
Reaction score
1
This is the procedure I followed to resolve my issue.

My WMI repository was corrupt. I ran the following procedure and repaired the WMI. Once that was done, v2.0.7 installed and runs successfully.

Procedure to repair corrupted WMI that worked for me
• Disable and stop the winmgmt service
• Remove or rename C:\Windows\System32\wbem\repository
• Enable and start the winmgmt service
• Open Command Prompt as Administrator
• Run the following commands:
cd C:\Windows\System32\wbem\
for /f %s in ('dir /b *.mof') do mofcomp %s
NOTE: This will take a minute or so to complete.
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s

Hope this helps others with the same issue!
YOU ARE A HERO! FIXED MINE TOO. I Uninstalled CodeProject, cuda_11.7 and rebooted. Then installed CodeProject.AI.Server-2.1.10.exe, cuda_11.7 and then the install_CUDnn.bat. I did not have a wbem directory in my System32, but I ran the commands cd C:\Windows\System32\wbem\ then for /f %s in ('dir /b *.mof') do mofcomp %s and restarted. All is working again. Thank you very much!
 
Joined
May 18, 2017
Messages
12
Reaction score
4
This is the procedure I followed to resolve my issue.

My WMI repository was corrupt. I ran the following procedure and repaired the WMI. Once that was done, v2.0.7 installed and runs successfully.

Procedure to repair corrupted WMI that worked for me
• Disable and stop the winmgmt service
• Remove or rename C:\Windows\System32\wbem\repository
• Enable and start the winmgmt service
• Open Command Prompt as Administrator
• Run the following commands:
cd C:\Windows\System32\wbem\
for /f %s in ('dir /b *.mof') do mofcomp %s
NOTE: This will take a minute or so to complete.
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s

Hope this helps others with the same issue!


Worked for me too. Thanks :)
 

CCTVCam

Known around here
Joined
Sep 25, 2017
Messages
2,674
Reaction score
3,505
If there's a problem with Windows system files and the code above doesn't work, you could try running the DISM commands to repair windows. Very safe and very effective for many issues.
 

93JWJ

n3wb
Joined
Jul 26, 2023
Messages
11
Reaction score
2
Location
Australia
Still having issues with this. Cannot complete step 2. Cannot delete or rename the folder, even with admin, as it says it it open in another program.
 

Nunofya

Getting comfortable
Joined
Nov 8, 2021
Messages
356
Reaction score
274
Location
USA
Still having issues with this. Cannot complete step 2. Cannot delete or rename the folder, even with admin, as it says it it open in another program.
Use Task Manager to close it, then you should be able to delete.
 
Top