我使用升级安装程序将我的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
请帮助我解决问题,谢谢
答案 0 :(得分:1)
感谢kentico支持电子邮件指出该项目内仅允许一个global.ascx.cs文件。 我的解决方案包括2,因此我删除了global.ascx.cs文件之一。 然后问题解决了。