Error In Page


Error Message: Parameter is not valid.
Stack Trace:
System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at Dea.Web.Sites.MasterCalendar.BasePage.ConvertImageToByteArray(Image imageToConvert, ImageFormat formatOfImage)
at Dea.Web.Sites.MasterCalendar.BasePage.ThumbnailImage(Byte[] imageBytes, Int32 width, Int32 height, String extension)
at EventDetails.BindDetails(DataSet ds, Boolean isChild)
at EventDetails.LoadData(String fromPage, Boolean isChild, Boolean isPreview)
at EventDetails.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at Dea.Web.Sites.MasterCalendar.BasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Additional Information
ErrorCaughtBy: EventDetails.aspx
PatchNumber: 11
ClientName:
Product:


Error Logging Exeception:


Logging Error Message: Access to the path 'C:\Inetpub\wwwroot\MasterCalendar\LogFiles\ErrorLog_09012016.txt' is denied.
Logging Stack Trace:
System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\wwwroot\MasterCalendar\LogFiles\ErrorLog_09012016.txt' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append)
at System.IO.File.CreateText(String path)
at e.a(String A_0, Boolean A_1)
at Dea.ExceptionHandling.Loggers.DefaultLogger.Log(Exception exception, NameValueCollection additionalInfo, NameValueCollection configSettings)
at Dea.ExceptionHandling.ExceptionHandler.Log(Exception exception, NameValueCollection additionalInfo)
at Dea.ExceptionHandling.ExceptionPrep.LogError(Exception caughtError, String caughtBy, String simpleErrorMessage, NameValueCollection additionalInfo)