Server Error in '/' Application.

Could not find a part of the path 'G:\PleskVhosts\usatinc.com\serenityofcommerce.com\blog\uploads\Activity\img_20221202115908_EE8C62F7-554A-4B4E-B2EE-A28216C8BC0F.jpeg'.

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.IO.DirectoryNotFoundException: Could not find a part of the path 'G:\PleskVhosts\usatinc.com\serenityofcommerce.com\blog\uploads\Activity\img_20221202115908_EE8C62F7-554A-4B4E-B2EE-A28216C8BC0F.jpeg'.

Source Error:


Line 22:                 <div class="item box">
Line 23:                     <div class="databasefield"><%# Eval("Title")%></div>
Line 24:                     <div class="imgpart"><img src="<%# _global.GenFx.GetImageUrl(System.IO.File.ReadAllBytes(Server.MapPath(Eval("ActImage").ToString())), 314, 200) %>" alt="<%# Eval("ActImage")%>" class="center"></div>
Line 25:                     <div class="textfield"><%# Eval("Summary") %></div>
Line 26:                 </div>

Source File: g:\pleskvhosts\usatinc.com\serenityofcommerce.com\includes\activityPopup.ascx    Line: 24

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'G:\PleskVhosts\usatinc.com\serenityofcommerce.com\blog\uploads\Activity\img_20221202115908_EE8C62F7-554A-4B4E-B2EE-A28216C8BC0F.jpeg'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   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, Boolean useLongPath, Boolean checkHost) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +146
   System.IO.File.InternalReadAllBytes(String path, Boolean checkHost) +125
   ASP.includes_activitypopup_ascx.__DataBind__control3(Object sender, EventArgs e) in g:\pleskvhosts\usatinc.com\serenityofcommerce.com\includes\activityPopup.ascx:24
   System.Web.UI.Control.OnDataBinding(EventArgs e) +100
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.Control.DataBindChildren() +248
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +195
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +174
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +291
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +109
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +81
   includes_activityPopup.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\usatinc.com\serenityofcommerce.com\includes\activityPopup.ascx.cs:22
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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