CMS Script Runtime Error

Parameter is not valid.

Exception Details: System.ArgumentException

Exception Source: System.Drawing

Stack Trace:

   at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
   at Zynex.AdminFramework.ImageLibrary.ImageLib.LoadImage(Byte[] bBuffer)
   at Zynex.CMS.CustomCode.Layout_Fotogalerie.resizeThumbImage(DataAttributeBinary objAttr)
   at Zynex.CRM.BusinessLogic.Data.DataAttributeBinary.ExportToCache(HttpContext context, CacheExportOptions options)
   at Zynex.CRM.BusinessLogic.Data.DataAttributeBinary.ExportToCache(HttpContext context, String sFieldChangeDate, String sCacheFolder, String sSuffix, String sFileExtension, Func`2 modifyFnc)
   at Zynex.CMS.CustomCode.Layout_Fotogalerie.renderGalerie(StringBuilder sb)
   at Zynex.CMS.CustomCode.Layout_Fotogalerie.Render(DataEntity objDataEntity, Dictionary`2 objCache)
   at Zynex.CMS.Web.HttpHandler.CRMPageProcessor.ProcessRequest(RequestParam rp)