Since C1 CMS' built-in image resizer cannot enlarge images I've added modified image resizer library and modified the line below:
// using Composite.Core.WebClient.Media;
using Composite.Core.WebClient.Media.Modded;
Modified files are:
C:\NET\vhosts\C1.CMS.6.6\Website\Composite\services\Media\ImageManipulator.ashx
C:\NET\vhosts\C1.CMS.6.6\Website\Renderers\ShowMedia.ashx
Modified image resizer source codes are located under the folder:
App_Code\ImageResizerModded
Now everything works as perfect... Until I try to add new datatype or modify any. When I do that I got an error:
The line is untouched original source code which works perfectly:
The Stackoverflow answer says about => syntax:
I don't know what's wrong here and how to fix it. The only workaround is to delete ImageResizerModded folder temporarily, modify/add datatype and then undelete the folder. The online site (pictures) affects for a while during the folder is deleted.
How can I fix the issue?