无法成功 apply/run Kentico 修补程序 12.0.29

Unable to successfully apply/run Kentico hotfix 12.0.29

我们使用 Kentico 12 MVC 和 CMS Ultimate 开发了一个网站,并且一直在应用修补程序,一直到 12.0.28。

然后我多次尝试应用修补程序 12.0.29,但失败并出现相同的错误,我能够重现这些错误。应用所有修补程序步骤后,最后一次重建失败并出现以下错误列表(下面附有屏幕截图):

    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

构建错误的屏幕截图

我按照这些 Kentico 文章中的步骤 instructions

以下是重现相同错误的步骤:

  1. 我确认我的 Kentico MVC 站点运行已成功与 12.0.28 连接。
  2. 我运行 Hotfix_12_0_29.exe 按照向导步骤安装。
  3. 我将 Kentico 的 NuGet 包更新到 12.0.29。
  4. 此时一切都很好。
  5. 我 运行 在 Visual Studio 上重建,这就是它抛出错误的地方。

我试过的其他东西

根据错误,它抱怨缺少 DancingGoat 示例文件,修补程序 12.0.29 安装程序无法生成。如果我从错误中检查目录路径:

C:\GIT\IPG-Laser-Systems\Kentico12\CMS\CMSWebParts\DancingGoat.Samples\

目录是空的,所以这是我所做的所有事情,但仍然失败并显示另一种类型的错误消息:

  1. 我之前在 12.0.28 下的备份 运行ning 有那些丢失的示例文件,我将它们复制到 12.0.29 安装目录并 运行 重建。它抛出另一个错误列表。
  2. 我 created/install 一个新的 DancingGoat 站点并将这些示例文件复制到 12.0.29 安装目录并 运行 重建。它抛出另一个错误列表。
  3. 我 created/install 一个新的空站点,也尝试了与上面相同的操作,但它抛出了另一个错误列表。
  4. 我尝试应用修补程序 12.0.30,但这些示例文件仍然丢失并抱怨同样的错误

我所做的所有其他尝试都抛出了相同类型的错误,附后:

尝试使用来自其他安装的示例文件后生成错误的屏幕截图

有我们需要的功能,在 12.0.29 中可用。

我以前见过这个。为了解决这个问题,我检查了升级日志并确认错误发生在文件更新和 SQL 更新之后。升级在编译步骤中。

我在 VS 中打开解决方案并从项目中删除了这 4 个文件,然后编译。之后,Kentico 加载正常,版本号在 UI 和数据库中都是正确的。

(代表问题作者发布答案).

我能够成功地应用修补程序 12.0.29 和 12.0.30 以及我通过电子邮件从 Kentico 支持团队收到的故障排除步骤,我也联系了他们。

这是他们给我的说明:

There are a few things we can try here, as there has been some previous cases with similar issues.

  1. Make sure to update your MVC project's Kentico.AspNet.Mvc NuGet package to 12.0.29
  2. Restart both applications, Admin and backend.
  3. 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.