Server Error in '/' Application.

Value cannot be null.
Parameter name: stream

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: stream

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: stream]
   System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams) +442
   WebDesign.Core.PropertyObject.GalleryImage.SaveBitmapToOutputStream(Stream outputStream, Bitmap bitmap, GalleryImageParameters parameters) +602
   WebDesign.Core.PropertyObject.GalleryImage.EnsureCachedFile(GalleryImageParameters parameters) +491
   WebDesign.Core.PropertyObject.GalleryImage.GetCachedUrl(GalleryImageParameters parameters) +75
   WebDesign.Components.Social.FacebookShareLink.RegisterFacebookHeader(GalleryImage image) +251
   WebDesign.Components.Social.FacebookShareLink.<OnPreRender>b__40_0(IProjectPropertyObject img) +74
   System.Collections.Generic.List`1.ForEach(Action`1 action) +101
   WebDesign.Components.Social.FacebookShareLink.OnPreRender(EventArgs e) +1170
   System.Web.UI.Control.PreRenderRecursiveInternal() +200
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Control.PreRenderRecursiveInternal() +297
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7479


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0