Compiler Error Message: CS0103: The name 'CMSAppBase' does not exist in the current context

Wayne Yuan asked on November 24, 2015 04:39

After upgrade to Kentico 8, I got following errors Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0103: The name 'CMSAppBase' does not exist in the current context

Here is the line of code in \CMS\App_Code\CMSPages\GetResource.ashx.cs
return CMSAppBase.ApplicationInitialized ? CMSContext.CurrentSiteName : string.Empty;

Any ideas on how to fix it? Thanks!

Correct Answer

Dawid Jachnik answered on November 24, 2015 09:06

Hello,

After upgrade you shoudln't have this file and folder CMSPages in your App_Code folder. Simply remove them.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.