ASPX templates
Version 4.x > ASPX templates > QueryLog control does not exists anymore? View modes: 
User avatar
Member
Member
random0xff - 5/31/2009 7:23:51 AM
   
QueryLog control does not exists anymore?
Hello,

from the documentation:

http://www.kentico.com/docs/devguide/index.html?sql_queries_debugging.htm

If you want to use SQL debugging on ASPX page templates, you need to manually add the following control to the page. It will display the same queries table as in the Live site mode debugging described above.

<cms:QueryLog ID="logQuery" runat="server" />

But when I try to use it:

Unknown server tag 'cms:QueryLog'.


User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 6/2/2009 9:20:13 AM
   
RE:QueryLog control does not exists anymore?
Hi,
you need to add reference to this control like:

<%@ Register Src="~/CMSAdminControls/Debug/QueryLog.ascx" TagName="QueryLog" TagPrefix="cms" %>


Please also don't forget to add these lines into web.config:
<add key="CMSDebugSQLQueries" value="true" />
<add key="CMSDebugSQLQueriesLive" value="true" />


Best Regards,
Zbysek Nemec

User avatar
Member
Member
random0xff - 6/11/2009 4:25:25 PM
   
RE:QueryLog control does not exists anymore?
Of course, I should have know that. Thanks!