the selected folder is missing a vital kentico component please make sure you selected a kentico ins

kentico guy asked on May 18, 2021 02:32

Kentico 12.0.15 Portal Engine Attempting Update to 12.0.92:

I'm trying to update kentico with a hotfix and getting message from the installer :

the selected folder is missing a vital kentico component please make sure you selected a kentico installation folder

is there any way to get some more detail on which component is missing? The message is not very helpful. I'd like some more granularity on which component is missing. I've updated multiple instances of kentico with the same 12.0.92 hotfix with no issues. This version is highly customized but runs fine. Can I enable logging by running the hotfix.exe from command line?

How can I get more details on this?

I also tried updated by extracting via command line then manually applying the files, but the csproj is over 20k lines so I'm thinking that's where it went wrong.

I think this error message is useless because it could easily tell me which file was having a problem with the upgrade then I could check out that file.

Recent Answers


Brenden Kehren answered on May 18, 2021 03:46

If the error is coming from the upgrade tool then it's most likely not a project file. Can you share a screenshot of the root of your file system? I'm wondering if your project has a major folder missing

0 votesVote for this answer Mark as a Correct answer

kentico guy answered on May 18, 2021 14:56

05/18/2021  08:46 AM    <DIR>          CMS
05/18/2021  08:46 AM    <DIR>          CMSApp.Tests
04/29/2021  03:21 PM    <DIR>          Database
03/06/2020  11:45 AM                42 exclude.txt
05/18/2021  08:46 AM               319 GlobalAssemblyInfo.cs
05/18/2021  08:46 AM    <DIR>          Lib
03/06/2020  11:45 AM               241 modified.txt
04/28/2021  07:41 AM                30 package-lock.json
05/14/2021  05:16 PM    <DIR>          packages
03/06/2020  11:45 AM               960 README.md
03/06/2020  11:45 AM    <DIR>          SQL
09/22/2020  05:48 PM             6,046 .editorconfig
03/06/2020  11:43 AM             1,121 .eslintrc.json
03/06/2020  11:43 AM             2,570 .gitattributes
04/28/2021  07:41 AM             6,809 .gitignore
03/06/2020  11:45 AM                 9 autobuildtest.txt
04/28/2021  07:41 AM             1,484 azure-pipelines.yml
05/17/2021  08:13 PM            24,345 CMSApp.sln
0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 18, 2021 15:12

Thanks, how about one level down from there in the /CMS directory?

0 votesVote for this answer Mark as a Correct answer

kentico guy answered on May 18, 2021 20:39

05/18/2021  02:17 PM    <DIR>          Admin
12/02/2020  05:53 PM    <DIR>          App_Data
03/06/2020  11:43 AM                 9 App_Offline.htm_
03/06/2020  11:43 AM    <DIR>          App_Start
03/06/2020  11:44 AM    <DIR>          App_Themes
05/18/2021  02:18 PM    <DIR>          bin
03/06/2020  11:44 AM    <DIR>          CMSAdminControls
05/18/2021  02:17 PM         1,433,240 CMSApp.csproj
03/19/2021  11:39 AM             1,728 CMSApp.csproj.user
03/06/2020  11:44 AM            20,815 CMSApp_AppCode.csproj
03/06/2020  11:44 AM             8,394 CMSApp_MVC.csproj
03/06/2020  11:44 AM    <DIR>          CMSEdit
03/06/2020  11:44 AM    <DIR>          CMSFormControls
03/06/2020  11:44 AM    <DIR>          CMSInlineControls
03/06/2020  11:44 AM    <DIR>          CMSInstall
03/06/2020  11:44 AM    <DIR>          CMSMasterPages
03/06/2020  11:44 AM    <DIR>          CMSMessages
05/17/2021  08:13 PM    <DIR>          CMSModules
05/18/2021  02:18 PM    <DIR>          CMSPages
05/18/2021  02:18 PM    <DIR>          CMSResources
05/18/2021  02:18 PM    <DIR>          CMSScripts
03/06/2020  11:45 AM    <DIR>          CMSSiteUtils
03/06/2020  11:45 AM    <DIR>          CMSTemplates
03/06/2020  11:45 AM    <DIR>          CMSVirtualFiles
03/06/2020  11:45 AM    <DIR>          CMSWebParts
03/06/2020  11:45 AM    <DIR>          CMS_MvcModule
03/06/2020  11:45 AM    <DIR>          Controllers
03/06/2020  11:45 AM               901 Default.aspx
03/06/2020  11:45 AM               601 Default.aspx.cs
03/06/2020  11:45 AM             2,454 Default.aspx.designer.cs
03/06/2020  11:45 AM               154 DocumentRESTService.svc
03/06/2020  11:45 AM                82 Global.asax
04/29/2021  03:21 PM               638 Global.asax.cs
04/28/2021  07:41 AM             5,447 gulpfile.js
03/06/2020  11:45 AM            10,089 gulpfile.js.new
03/06/2020  11:45 AM             1,212 InstallHealthMonitoringService.cmd
03/06/2020  11:45 AM                75 libman.json
03/06/2020  11:45 AM            53,810 log.txt
03/06/2020  11:45 AM    <DIR>          Models
05/18/2021  11:19 AM    <DIR>          node_modules
05/14/2021  02:45 PM    <DIR>          obj
03/06/2020  11:45 AM               163 ObjectTranslationRESTService.svc
03/06/2020  11:45 AM    <DIR>          Old_App_Code
03/06/2020  11:45 AM    <DIR>          Old_App_WebReferences
05/18/2021  02:18 PM           294,693 package-lock.json
04/28/2021  07:41 AM               945 package.json
05/18/2021  02:18 PM             7,024 packages.config
03/06/2020  11:45 AM    <DIR>          Properties
09/22/2020  05:48 PM             1,619 pstimeout.htm
03/06/2020  11:45 AM             2,687 README.md
03/06/2020  11:45 AM               138 RESTService.svc
03/06/2020  11:45 AM             1,262 RunSite.vbs
03/06/2020  11:45 AM                 4 test.txt
03/06/2020  11:45 AM    <DIR>          Views
03/06/2020  11:45 AM               267 vwd.webinfo
05/18/2021  02:18 PM            25,760 web.config
04/28/2021  07:41 AM             1,290 Web.Development.config
09/22/2020  05:48 PM             1,944 Web.Production.config
04/28/2021  07:41 AM               216 Web.Release.config
09/22/2020  05:48 PM             1,531 Web.Stage.config
04/28/2021  07:41 AM             1,295 Web.Test.config
03/06/2020  11:45 AM             1,087 wse3policy.config
0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 18, 2021 21:49

So looks like you're combining Portal Engine and MVC dev in one project. Was that working prior to applying the HF?

Secondly, what directory are you pointing to when you're running the tool? It should be pointing to the first screenshot you provided.

Lastly, if you downloaded the HF application from the DevNet, you should be able to run/extract it by double clicking it. Then follow the on-screen instructionsfrom the tool. It will direct you through the process. If it errors out, it does keep a log of the process and errors so you could view that and look for further details on where and why it failed.

Log files are typically stored in here C:\Program Files (x86)\Kentico. You can also find log files in the root of the project under log.txt.

0 votesVote for this answer Mark as a Correct answer

kentico guy answered on May 18, 2021 22:42

@Brendan thanks for the help

So looks like you're combining Portal Engine and MVC dev in one project. Was that working prior to applying the HF?

This doesn't have the hotfix applied. It's a branch up from the dev environment. And yes, it's working fine. I have already applied the hotfix to this same project by extracting files with cmd.exe then just merging them manually and running the SQL script

Secondly, what directory are you pointing to when you're running the tool? It should be pointing to the first screenshot you provided.

I get this message whether I point at the (root) or at /CMS/

Lastly, if you downloaded the HF application from the DevNet, you should be able to run/extract it by double clicking it. Then follow the on-screen instructionsfrom the tool. It will direct you through the process. If it errors out, it does keep a log of the process and errors so you could view that and look for further details on where and why it failed.

Log files are typically stored in here C:\Program Files (x86)\Kentico. You can also find log files in the root of the project under log.txt.

I'm not seeing this log file. I don't think the log runs unless you can actually get past the message in description. I've had no issues once the installer actually runs. The problem in this case is that it won't let me even start the hotfix against my project. I had to manually extract the files and manually merge 20k lines of csproj, plus delete files etc

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 18, 2021 23:04

Interesting. Seems like it COULD be a .csproj file issue. It's pretty odd that is has that many lines in it. Typically you don't include any of the /node_modules files or Nuget package files in your project. Gulp or your build process would capture those.

Have you checked with support@kentico.com and provided them that error? They may have some additional feedback that may point you in the right direction. If they don't have much info, shoot me an email and I'll see if I can help more.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 19, 2021 14:20

I would try installing a fresh Kentico instance and then open the .sln file and check the project GUIDs - maybe something changed the GUID. Since the file is called WebApp.sln by default, so it looks like this originates from some (maybe really) old version. Sample GUIDs from the .sln file:

Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "CMS", "CMS\", "{420F4FED-2F28-4BE5-8CEA-9A6B9A57558B}"

Or, a quick workaround would be applying the hotfix manually.

0 votesVote for this answer Mark as a Correct answer

kentico guy answered on May 19, 2021 15:55

Ok, thanks for the advice. I'll try this next time I get the message. @Juraj you should tell the development management team to change that error message to specifically say what file is causing the issue. Make that error message more helpful as to what exactly is missing. It would be nice to have more granularity in the error message.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 20, 2021 07:43

Will do! ;-)

0 votesVote for this answer Mark as a Correct answer

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