当我单击 CMSDesk 中的工具时,我收到“应用程序中的服务器错误”错误,我能够在 Kentico 7.0 中解决此错误,如此处所述
但是我现在在 7.31 安装中遇到了同样的错误。
事件日志是
Event ID: 77
Event type: Error
Event time: 5/2/2013 10:27:08 PM
Source: Application_Error
Event code: EXCEPTION
User ID: 53
User name: administrator
IP address: ::1
Description: Message: Multiple controls with the same ID 'bRecentDocs' were found. FindControl requires that controls have unique IDs.
Stack Trace:
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
at CMS.ExtendedControls.ScrollPanel.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)
Site name: new2
Machine name: RN7
Event URL: /KenticoCMS7E/CMSModules/MyDesk/mainMenu.aspx
URL referrer: http://localhost/KenticoCMS7E/CMSModules/MyDesk/Default.aspx
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
我知道问题出在数据库中,因为如果我切换到不同的数据库就没有问题。
[更新] 如果我运行应用程序,崩溃前我可以在调试器中看到的最后一段代码位于 In CMSAdminControls_UI_UniMenu_UniMenu
/// <summary>
/// Register scripts
/// </summary>
protected override void OnPreRender(EventArgs e)
{
ScriptHelper.RegisterJQuery(Page);
ScriptHelper.RegisterScriptFile(Page, "~/CMSAdminControls/UI/UniMenu/UniMenu.js");
base.OnPreRender(e);
}
Kentico 支持确认问题出在数据库中,并正在向我发送修复程序。