How to remove an obsolete version of 1C:Enterprise Server Agent service that prevents a current version from running
Question: When I check the Windows Task Manager, I see that 1C:Enterprise Server Agent service has been stopped and I cannot force it to start. What could be the reason for this problem? How to solve it?
Answer: Such problem arises when:
- You have 1C:Enterprise Server (64-bit) installed, and then you install the same version of 1C:Enterprise Server (32-bit) on top of it.
- You have a later version of 1C:Enterprise Server installed, and then you install an earlier version of 1C:Enterprise Server on top of it.
To fix this problem:
1. Manually remove the 1C:Enterprise Server Agent service of the obsolete platform version:
1.1 To be able to remove the obsolete 1C:Enterprise Server Agent service, you must still have the corresponding obsolete 1C:Enterprise Server version installed on your computer. If you had uninstalled it, install it again.
1.2 Run Windows command prompt “As Administrator”.
1.3 While at Windows command prompt, change to the “bin” directory of the obsolete 1C:Enterprise Platform directory. For example:
cd "C:\Program Files\1cv8\8.3.24.1020\bin"
1.4 Run “ragent.exe” from the “bin” folder:
ragent.exe -rmsrvc
1- Alternate way:
1.1- Run Windows Command Prompt “As Administrator”.
1.2- Stop the 1C Server service by typing in the command prompt:
sc stop “1C:Enterprise 8.3 Server Agent (x86-64)”
where “1C:Enterprise 8.3 Server Agent (x86-64)” is the name of the service as seen on the windows services page
1.3- Delete the 1C Server service by typing in the command prompt:
sc delete “1C:Enterprise 8.3 Server Agent (x86-64)”
where “1C:Enterprise 8.3 Server Agent (x86-64)” is the name of the service as seen on the windows services page
2. Now that you have removed the obsolete 1C:Enterprise Server Agent, you do not need the obsolete platform anymore. Go to Windows settings > Apps and uninstall the obsolete 1C:Enterprise Server version.
3. Delete the “C:\Program Files\1cv8\srvinfo” folder to make sure no server settings conflicts arise between 1C:Enterprise Server versions.
4. Install the required 1C:Enterprise Server version.
5. Open Windows Task Manager and check that the required 1C:Enterprise Server Agent service is now running.