Server Error in '/' Application.

Could not find a part of the path 'D:\home\reyacht.com\httpdocs\wp-content\uploads\2019\05\PHOTO-2019-05-24-19-13-30-2-1199x1599.jpg'.

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 'D:\home\reyacht.com\httpdocs\wp-content\uploads\2019\05\PHOTO-2019-05-24-19-13-30-2-1199x1599.jpg'.

Source Error:


Line 83:         if (SonoInLocale() && !File.Exists(URL)) return;
Line 84: 
Line 85:         using (FileStream fsSource = new FileStream(URL, FileMode.Open, FileAccess.Read)) {
Line 86: 
Line 87:             // Read the source file into a byte array.

Source File: d:\home\reyacht.com\httpdocs\App_Code\ecommerce\IdeaWebUrlImageEcommerce.cs    Line: 85

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\home\reyacht.com\httpdocs\wp-content\uploads\2019\05\PHOTO-2019-05-24-19-13-30-2-1199x1599.jpg'.]
   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) +125
   IdeaWebUrlImageEcommerce.ProcessRequest(HttpContext context) in d:\home\reyacht.com\httpdocs\App_Code\ecommerce\IdeaWebUrlImageEcommerce.cs:85
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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