Server Error in '/' Application.

Could not find a part of the path 'E:\kunden\homepages\11\d385403865\www\thecaromroom\tournaments\results\Bar%20Table\2022-2023\Open\2023-01-14_10'.

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 'E:\kunden\homepages\11\d385403865\www\thecaromroom\tournaments\results\Bar%20Table\2022-2023\Open\2023-01-14_10'.

Source Error:


Line 134:                    string dirPath = "/tournaments/results/" + tournamentType + "/" + tournamentYear + "/" + tournamentSubtype + "/" + tournamentDate + "/";
Line 135:                    // Get Tournament details
Line 136:                    if (Directory.GetFiles(Server.MapPath(dirPath)).Length > 0)
Line 137:                    {
Line 138:                        bool isFileExists = File.Exists(Server.MapPath(dirPath) + "details.csv");

Source File: e:\kunden\homepages\11\d385403865\www\thecaromroom\tournaments\results-details.aspx    Line: 136

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'E:\kunden\homepages\11\d385403865\www\thecaromroom\tournaments\results\Bar%20Table\2022-2023\Open\2023-01-14_10'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +373
   System.IO.FileSystemEnumerableIterator`1.CommonInit() +385
   System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) +398
   System.IO.Directory.GetFiles(String path) +73
   ASP.tournaments_results_details_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\kunden\homepages\11\d385403865\www\thecaromroom\tournaments\results-details.aspx:136
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


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