Server Error in '/' Application.

Could not find a part of the path 'D:\home\rfpphoto.com\wwwroot\PhotoGallery\Aerial%20Gallery\Events\Small'.

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\rfpphoto.com\wwwroot\PhotoGallery\Aerial%20Gallery\Events\Small'.

Source Error:


Line 76: 
Line 77:             Dim DirInfo As New DirectoryInfo(Server.MapPath(Request.QueryString("Dir") & "/Small/"))
Line 78:             Dim Files As FileInfo() = DirInfo.GetFiles()
Line 79:             Dim i As Integer = 0
Line 80: 

Source File: D:\home\rfpphoto.com\wwwroot\gallery\modules\NewGalleryDisplay20.ascx.vb    Line: 78

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\home\rfpphoto.com\wwwroot\PhotoGallery\Aerial%20Gallery\Events\Small'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   System.IO.FileSystemEnumerableIterator`1.CommonInit() +421
   System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) +515
   System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption) +93
   NewGalleryDisplay20.BuildThumbnails() in D:\home\rfpphoto.com\wwwroot\gallery\modules\NewGalleryDisplay20.ascx.vb:78
   NewGalleryDisplay20.Page_Load(Object sender, EventArgs e) in D:\home\rfpphoto.com\wwwroot\gallery\modules\NewGalleryDisplay20.ascx.vb:14
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   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.4667.0