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?
|