Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Artificial Intelligence
  3. Unable to Start CodeProject.AI Server Due To Space in ImagePath

Unable to Start CodeProject.AI Server Due To Space in ImagePath

Scheduled Pinned Locked Moved Artificial Intelligence
sysadminwindows-adminsecurityhelp
4 Posts 4 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 15692979
    wrote on last edited by
    #1

    After installing CodeProject AI Server on my Windows 10 machine for use with Blue Iris Security, I was unable to get the CodeProject AI Server service to start. I eventually was able to get it to start by modifying the CodeProject AI Server ImagePath in Windows Registry. I had to add quotes to the ImagePath ("C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"). I think the reason I had to add quotes to the path is because there is a space within the path string between "Program" and "Files." The CodeProject AI installer I used was CodeProject.AI.Server-1.5.0.exe. This installer doesn't include quotes around the ImagePath. I imagine that most systems don't encounter this problem even without the quotes. One of my installations did encounter the problem and one didn't, even though the ImagePath was identical on both machines. I think the installer should include the quotes by default since the quotes will prevent this problem on machines where there is a conflict in the path. On the machine where I encountered this problem, now I am experiencing repeated restarts of the CodeProject AI Server service. I am wondering if this is somehow related to other calls made by the program to the same path. If so, maybe those calls should include quotes around the path. This is just a guess because I have not had much time to look into the restarts, yet. I would suggest that maybe the CodeProject AI Server program should be broadly evaluated for instances where this type of path conflict could be a problem. Disclaimer: I probably don't need to state the obvious, but I am not a programmer.

    C M 2 Replies Last reply
    0
    • M Member 15692979

      After installing CodeProject AI Server on my Windows 10 machine for use with Blue Iris Security, I was unable to get the CodeProject AI Server service to start. I eventually was able to get it to start by modifying the CodeProject AI Server ImagePath in Windows Registry. I had to add quotes to the ImagePath ("C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"). I think the reason I had to add quotes to the path is because there is a space within the path string between "Program" and "Files." The CodeProject AI installer I used was CodeProject.AI.Server-1.5.0.exe. This installer doesn't include quotes around the ImagePath. I imagine that most systems don't encounter this problem even without the quotes. One of my installations did encounter the problem and one didn't, even though the ImagePath was identical on both machines. I think the installer should include the quotes by default since the quotes will prevent this problem on machines where there is a conflict in the path. On the machine where I encountered this problem, now I am experiencing repeated restarts of the CodeProject AI Server service. I am wondering if this is somehow related to other calls made by the program to the same path. If so, maybe those calls should include quotes around the path. This is just a guess because I have not had much time to look into the restarts, yet. I would suggest that maybe the CodeProject AI Server program should be broadly evaluated for instances where this type of path conflict could be a problem. Disclaimer: I probably don't need to state the obvious, but I am not a programmer.

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      Thanks for the report. A quick look around shows this issue could be an issue with the Windows MSI installer. We're wrapping the paths with quotes, but I've seen one developer manually go back and adjust the reg entry within the installer as a safeguard (just like you did manually). We've added this to our TODO list.

      cheers Chris Maunder

      M 1 Reply Last reply
      0
      • M Member 15692979

        After installing CodeProject AI Server on my Windows 10 machine for use with Blue Iris Security, I was unable to get the CodeProject AI Server service to start. I eventually was able to get it to start by modifying the CodeProject AI Server ImagePath in Windows Registry. I had to add quotes to the ImagePath ("C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"). I think the reason I had to add quotes to the path is because there is a space within the path string between "Program" and "Files." The CodeProject AI installer I used was CodeProject.AI.Server-1.5.0.exe. This installer doesn't include quotes around the ImagePath. I imagine that most systems don't encounter this problem even without the quotes. One of my installations did encounter the problem and one didn't, even though the ImagePath was identical on both machines. I think the installer should include the quotes by default since the quotes will prevent this problem on machines where there is a conflict in the path. On the machine where I encountered this problem, now I am experiencing repeated restarts of the CodeProject AI Server service. I am wondering if this is somehow related to other calls made by the program to the same path. If so, maybe those calls should include quotes around the path. This is just a guess because I have not had much time to look into the restarts, yet. I would suggest that maybe the CodeProject AI Server program should be broadly evaluated for instances where this type of path conflict could be a problem. Disclaimer: I probably don't need to state the obvious, but I am not a programmer.

        M Offline
        M Offline
        Member 15701634
        wrote on last edited by
        #3

        the CodeProject AI Server program should be broadly evaluated for instances where this type of path conflict could be a problem. True.

        1 Reply Last reply
        0
        • C Chris Maunder

          Thanks for the report. A quick look around shows this issue could be an issue with the Windows MSI installer. We're wrapping the paths with quotes, but I've seen one developer manually go back and adjust the reg entry within the installer as a safeguard (just like you did manually). We've added this to our TODO list.

          cheers Chris Maunder

          M Offline
          M Offline
          Member 15078716
          wrote on last edited by
          #4

          MSI installer. Something to consider more. Thank you. :thumbsup:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups