Page Template changed outside of Console now cannot open

Topics: General, Troubleshooting
Dec 8, 2010 at 12:15 PM

I made a small change to the content in a page template using Visual Studio and now I am unable to open it or do much using the console.  Checking the server log shows the warning:-

Console 'key5362938088057064' has a last known change numer of 21, but server current number is 1.

Is there any way to fix this or roll-back the changes?

Dec 8, 2010 at 12:47 PM

Make sure your template file is proper XML.

I'm a bit surprised that it is the entire console that break - you can not load it up any more? I would expect badly formatted layout templates to only affect page rendering/editing and template editing.

Dec 8, 2010 at 1:03 PM

I am as surprised as you are.  I can log into the console and navigate but I can't edit any pages or css or the "offending" template.  When I try, I get a popup dialog with the message "An error occurred executing the action.  Please contact your system administrator or consult the log for help".

The template file is a valid XML document so it appears that the timestamp on the file is not the same as the one that C1 has causing the problem.  You would have thought that since the server log is only showing this as a warning, it should allow the file to be opened and then I can save it again and synchronise the timestamps/version numbers.

I'm now stuck so any help will be appreciated.

Dec 8, 2010 at 1:08 PM

Please check out log files, they are located under /App_Data/Composite/LogFiles 

There's a good chance there will be some exception logs

Dec 8, 2010 at 1:13 PM

First of try to check the server log - napernik's version can be used or you use the "Tools | Server Log" menu option in the C1 Console. Chances are you will have a useable exception here.

If that do not help, post the template so we can check it out.

Dec 8, 2010 at 9:41 PM

@napernik - The log files do not show any exceptions

@mawtex - The warning I reported before was from the screen displayed when I use Tools | Server Log.  There are no exceptions shown, only the warning that Console 'key5362938088057064' has a last known change numer of 21, but server current number is 1 and information messages about total time.

The template is very simple as displayed below:-

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xmlns:f="" xmlns:lang="" xmlns:rendering="" xmlns:asp=""> <head> <title> <rendering:page.title /> </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <rendering:page.metatag.description /> <link href="~/Frontend/Styles/styles.css" type="text/css" rel="stylesheet" /> <script src="~/Frontend/Scripts/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="~/Frontend/Scripts/animation-transitions.js" type="text/javascript"></script> </head> <body>   <div class="page-wrapper">        <div class="header">            <div class="site-search">                <input id="site-search-text" name="site-search-text" type="text" />            </div>       </div>       <div class="banner">           <h1><a href="~/default.aspx">Comp-rite Kenya Limited</a></h1>       </div>              <div id="top-navigation-menu">            <f:function xmlns:f="" name="Comprite.Navigation.Menu" />        </div>               <div class="site-path-wrapper">            <div class="site-path">                <f:function xmlns:f="" name="Comprite.Navigation.Breadcrumb" />            </div>        </div>                <div class="content-wrapper">            <div class="content-left">                <h3>Main Menu</h3>                <div id="side-navigation-menu">                    <f:function xmlns:f="" name="Comprite.Navigation.Menu" />                </div>                <div class="gallery-wrapper">                    <h3 class="gallery-heading">Featured</h3>                    <div id="gallery" class="animation-transition">                        <div id="gallery-content" class="animation-wrapper">                            <a href="#"><img src="~/Frontend/Images/Pay100-Plus.jpg" width="160" height="130" alt="Pay100 Plus" /><span>Payroll processing</span></a>                            <a href="#"><img src="~/Frontend/Images/iSharePro.jpg" width="160" height="130" alt="iSharePro" /><span>Share registration software</span></a>                            <a href="#"><img src="~/Frontend/Images/Business-Power-Pack.jpg" width="160" height="130" alt="Business Power Pack" /><span>Business Power Pack</span></a>                        </div>                    </div>                </div>                <div>                    <rendering:placeholder id="content-left-placeholder" title="Left Content" />                </div>            </div>            <div class="content-main">                <rendering:placeholder id="content-main-placeholder" title="Main Content" default="true" />            </div>        </div>                <div class="footer">            <div class="footer-content">                <f:function xmlns:f="" name="Comprite.Navigation.Sitemap" />                <p class="copyright">Copyright 2010 Comp-rite Kenya Limited. All Rights Reserved.</p>            </div>        </div>        <div class="footer-shadow"></div>    </div> </body></html>

Dec 8, 2010 at 10:07 PM
Edited Dec 8, 2010 at 10:42 PM

Your template markup is just fine, so that is not the issue. Also broken template xml should not affect elements like css editing.

Are you certain that nothing else happened? There is no link (I can see) between the described cause and effect and your markup is just fine. Anyway, errors like that should show up nicely in the log.

You can try to do the following:

  1. Get the C1 Logging Console up and running - download it from from
    This will give you 'live logging feeds'
  2. Edit /global.asax and set ApplicationLevelEventHandlers.LogApplicationLevelErrors to true
  3. Provoke the problem

This will give you the maximum amount of log detail possible - hopefully we may learn something from this.

I guess you have tried restarting both browser and website also?



Dec 9, 2010 at 5:38 AM

I am certain nothing else happened.  I just opened the template file in Visual Studio made a change to the text and saved the file then the problem started.

I have carried out your suggestion and followed steps 1, 2 and 3 but nothing obvious is shown - there are many items classed as Verbose but no Errors or Exceptions.  The only Warning is as stated earlier "Console 'key5362938088057064' has a last known change numer of 21, but server current number is 1"

Yes I tried restarting the browser and the website.

Unfortunately, I need to get the site working asap so I'll have to restore an older version and work with that.  Thanks for all your help mawtex.