This project is read-only.

CS0103: The name 'Avatar' does not exist in the current context

Topics: Themes
Jan 28, 2014 at 10:37 PM

I am trying to Upgrade from BE 2.8 to BE 2.9 but I get this error
Compilation Error
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 'Avatar' does not exist in the current context

Source Error:

Line 262: public static string GetAvatarImageUrl(int size, Comment comment)
Line 263: {
Line 264: string avatarImageTag = Avatar.GetAvatarImageTag(size, comment.Email, comment.Website, comment.Avatar, comment.Author);
Line 265: return GetFirstImageSource(avatarImageTag, false);
Line 266: }

Source File: e:\HostingSpaces\wwwroot\App_Code\JQ-Mobile\ThemeHelper.cs Line: 264

Any ideas why?
Feb 16, 2014 at 4:49 PM
Just delete the App_Code\JQ-Mobile directory and all it's contents. Taking a look at the official release for 2.9 it does not contain that directory anymore. The upgrade tool should really be removing this directory automatically to avoid this error, for now just manually delete it.