title: Server Error in Application Kentico 7.31
body: <p>When I click tools in CMSDesk I get an "Server Error in Application" errir
  I was able to solve this error in Kentico 7.0 as documented <a href="https://stackoverflow.com/questions/16202685/server-error-in-kenticocms-application-clicking-on-tools-in-cms-desk-in-kent">here</a></p>
  
  <p>However i now have the same error in a 7.31 installation.</p>
  
  <p>The event log is </p>
  
  <pre><code>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 
  </code></pre>
  
  <p>I know that the problem is in the database because if I switch to a different database there is no problem.</p>
  
  <p>[Update]
  If I run the application the last piece of code that I can see in the debugger before the crash is in 
  In CMSAdminControls_UI_UniMenu_UniMenu</p>
  
  <pre><code>   /// &lt;summary&gt;
      /// Register scripts
      /// &lt;/summary&gt;
      protected override void OnPreRender(EventArgs e)
      {
          ScriptHelper.RegisterJQuery(Page);
          ScriptHelper.RegisterScriptFile(Page, "~/CMSAdminControls/UI/UniMenu/UniMenu.js");
  
          base.OnPreRender(e);
      }
  </code></pre>
  
  <p>Kentico support confirm the problem is in the database and are sending me a fix.</p>