Server Error in '/' Application.

Could not find a part of the path 'D:\ClientSites\vzwkaboem.be\httpdocs\images\fotos\14_Jenny%20breekt%20het%20ijs'.

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:\ClientSites\vzwkaboem.be\httpdocs\images\fotos\14_Jenny%20breekt%20het%20ijs'.

Source Error:


Line 17:         this.Title = folder.Substring(3);
Line 18:         DirectoryInfo dirInfo = new DirectoryInfo(root);
Line 19:         FileInfo[] Files = dirInfo.GetFiles("*.jpg",SearchOption.TopDirectoryOnly);
Line 20:         int teller = 0;
Line 21:         //List<string> fileArr = new List<string>();

Source File: d:\clientsites\vzwkaboem.be\httpdocs\Pages\FotosSub.aspx    Line: 19

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\ClientSites\vzwkaboem.be\httpdocs\images\fotos\14_Jenny%20breekt%20het%20ijs'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +271
   System.IO.FileSystemEnumerableIterator`1.CommonInit() +411
   System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) +488
   System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption) +90
   ASP.pages_fotossub_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in d:\clientsites\vzwkaboem.be\httpdocs\Pages\FotosSub.aspx:19
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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