We develop a site using Kentico 12 MVC with the CMS Ultimate and have been applying hotfixes fine all the way to 12.0.28.
I then tried multiple times to apply hotfix 12.0.29 and it failed with the same errors, which I was able to reproduce. After applying all hotfix steps, the last rebuild is where it fails with the following error list (screenshot attached below):
Error CS2001 Source file 'C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CMSWebParts\DancingGoat.Samples\DancingGoatSmartSearchAzure.ascx.cs' could not be found. CMSApp C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CSC 1 Active
Error CS2001 Source file 'C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CMSWebParts\DancingGoat.Samples\DancingGoatSmartSearchAzure.ascx.designer.cs' could not be found. CMSApp C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CSC 1 Active
Error CS2001 Source file 'C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CMSWebParts\DancingGoat.Samples\DancingGoatConsents.ascx.cs' could not be found. CMSApp C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CSC 1 Active
Error CS2001 Source file 'C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CMSWebParts\DancingGoat.Samples\DancingGoatConsents.ascx.designer.cs' could not be found. CMSApp C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CSC 1 Active
Screenshot of build errors
I follow the step-by-step from these Kentico article instructions.
Here are the steps to reproduce the same error:
Based on the error, it's complaining about the missing DancingGoat samples files that the hotfix 12.0.29 installer fail to generate. If I inspect the directory path from the error:
C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CMSWebParts\DancingGoat.Samples\
The directory is empty, so here are all the things I did and it still failed with another type of error message:
All those other tries I did, throw the same type of error, which is attached:
Screenshot of build errors after trying to use samples files from other installations
There are features that we need, which are available in 12.0.29.
(Posted answer on behalf of the question author).
I was able to successfully apply the hotfix 12.0.29 and also 12.0.30 with the troubleshooting steps I received from Kentico support team via email, which I also contacted them about.
Here are the instructions they gave me:
There are a few things we can try here, as there has been some previous cases with similar issues.
- Make sure to update your MVC project's Kentico.AspNet.Mvc NuGet package to 12.0.29
- Restart both applications, Admin and backend.
- If all nuget packages are updated to the current 12.0.29 and you're still getting these errors upon rebuild, you can try the following:
- Removing all the nuget kentico packages then reinstalling them.
- Clear restart the web app & app pool in IIS.
- Then rebuild all web apps again.