kentico从版本10升级到版本11的问题

kentico从版本10升级到版本11的问题,kentico,Kentico,我使用升级安装程序将我的kentico web应用程序项目从版本10升级到11,并使用codeupgrade实用程序检测代码问题并修改它们。 编撰 我收到了升级成功的消息 当我在本地访问我的网站时,收到下面的错误消息 `Server Error in '/' Application. An item with the same key has already been added. Description: An unhandled exception occurred during the

我使用升级安装程序将我的kentico web应用程序项目从版本10升级到11,并使用codeupgrade实用程序检测代码问题并修改它们。 编撰

我收到了升级成功的消息

当我在本地访问我的网站时,收到下面的错误消息

`Server Error in '/' Application.
An item with the same key has already been added.
  Description: An unhandled exception occurred during the execution of the 
  current web request. Please review the stack trace for more information 
  about the error and where it originated in the code. 

   Exception Details: System.ArgumentException: An item with the same key 
   has already been added.

   Source Error: 


 Line 23: 
  Line 24:         // Initialize CMS application. This method should not be 
 called from custom code.
 Line 25:         InitApplication();
 Line 26:     }
 Line 27: 

   Source File: C:\compass_build\CMS\Global.asax.cs    Line: 25 


请您帮助我解决这个问题,谢谢kentico的支持,或者通过电子邮件指出项目中只允许一个global.ascx.cs文件。 我的解决方案包括2个,所以我删除了一个global.ascx.cs文件。
然后问题就解决了。

您是否有代码升级工具自动为您解决问题?另外,您有多少自定义代码?您是自己解决自定义代码问题还是使用代码升级工具解决自定义代码问题?您提供的错误消息可能是100个或1000个不同问题中的一个。您需要提供有关安装和自定义代码的更多信息。感谢Brenden的评论。我也使用了代码升级来自动修复代码并解决了一些问题。感谢kentico Supper通过电子邮件指出项目中只有一个global.ascx.cs文件。我的解决方案包括2个,所以我删除了一个global.ascx.cs文件。那么问题就解决了。你是说global.ASAX.cs吗?类似的问题,但在肯蒂科12。另外,我搜索了global.asax.cs文件,结果只有一个。项目中根本没有global.ascx.cs文件。