Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > Web\CMSModules\System\Controls\System.ascx does not compile View modes: 
User avatar
Member
Member
r-puust - 4/7/2012 10:05:01 PM
   
Web\CMSModules\System\Controls\System.ascx does not compile
I have a unmodified instance of Kentico 6.0 running under .Net 4.0. I patched it to SP1 and then patched it again to v6.0.25 (SP1)‎. Everything seems to work, except that now Web\CMSModules\System\Controls\System.ascx does not compile because of this function:

/// <summary>
/// Gets the values string for the page views.
/// </summary>
private string GetViewValues(long total, long async, double rps)
{
return total.ToString() /*+ " / " + async.ToString() + " / "*/ + ((rps >= 1) ? " (" + Math.Floor(rps).ToString() + " RPS)" : "");
}

It is complaining that async is a keyword, which it is. The parameter isn't being used, so all I did was change "long async" to "long async2" and it compiled. But I'm surprised other people are not having this issue, but if somebody is, that is the fix.

Is the code above the "correct" code or is this a patching issue?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 4/8/2012 5:43:15 AM
   
RE:Web\CMSModules\System\Controls\System.ascx does not compile
Hi,

the code is commented out so it should not throw the error message. But it seems to be really a bug that code is there and it is not used. I will inform our development team to take a look at it.

Thank you for letting us know about it.

Best regards,
Ivana Tomanickova