Compilation Error in MS Visual Studio 2012 when using Ektron CMS400 Version 8.7 and older

  • Updated

If you are using MS VS 2012 and a version of Ektron CMS older than 8.7 SP2 you may experience 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:       CS1525: Invalid expression term 'else'

Source Error:

Line 178:      <%if (folder_data.foldertype="=" 9) %>
Line 179:      bRet = confirm('Are you sure you want to ' + strMoveCopy + ' this entry?');                                
Line 180:      <%else %>
Line 181:      bRet = confirm('Are you sure you want to ' + strMoveCopy + ' this content block?'+pbmsg);               
Line 182:      if (bRet){

Source File:

Visual Studio 2012 was not supported in the older versions and can cause this issue. You need to replace sections of the code in: workarea/controls/folder/movefolderitem.ascx from this zip file: Workarea patch file for Ektron 8.7 SP2 and older. The file can be completely replaced if in version 8.6.1 otherwise you will need to merge in the specific lines from the errors.