Upgrading from Kentico 7 to 8

James Hooper asked on August 22, 2016 20:56

We're performing an upgrade from 7 to 8. I'm performing first on our dev site. Our dev site and prod site are on the same server. The log after running the upgrade: The name is already in use as either a service name or a service display name Message: The name is already in use as either a service name or a service display name Stack Trace: at System.ServiceProcess.ServiceInstaller.Install(IDictionary stateSaver) at System.Configuration.Install.Installer.Install(IDictionary stateSaver) at System.Configuration.Install.Installer.Install(IDictionary stateSaver) at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState) at Hotfix.HotfixInstaller.InstallService(String assemblyName) at Hotfix.HotfixInstaller.ApplyUpgrade(HotFixItemsEnum items, BackgroundWorker worker, DoWorkEventArgs e) at Hotfix.StepLog.BackgroundWorker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

When I try and install the scheduler windows service using Kentico Service Manager, I also get a similar error: System.ComponentModel.Win32Exception (0x80004005): The name is already in use as either a service name or a service display name at System.ServiceProcess.ServiceInstaller.Install(IDictionary stateSaver) at System.Configuration.Install.Installer.Install(IDictionary stateSaver) at System.Configuration.Install.Installer.Install(IDictionary stateSaver) at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState) at CMS.WinServiceEngine.ServiceManager.InstallOrUninstall(String assemblyName, Boolean install) at KSM.MainForm.bgWorker_DoWork(Object sender, DoWorkEventArgs e)

This is preventing the upgrade from finishing. We have both our production and dev environment on the same server. And I believe that this is the source of the error. What's the best solution for this situation? Thx

Recent Answers


Daniel Merta answered on August 23, 2016 08:47 (last edited on August 23, 2016 08:47)

Hi James, the error indicates that there is already a service registered with given name. Could you please go to the web.config file and specify the:

<add key="CMSApplicationName" value="Default Web Site/YourCMS" />

to have some unique value and also that it's specified only once? Also, when you run the Windows services - how many of the Kentico services are running?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.