Server Error in '/' Application.

Could not find a part of the path 'D:\inetpub\vhosts\sportelloenergia.eu\_file\Le migliori offerte'.

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:\inetpub\vhosts\sportelloenergia.eu\_file\Le migliori offerte'.

Source Error:


Line 108:        //string path = Server.MapPath("") + "\\..\\";
Line 109:        string pathFolder = path;// + "\\" + subFolder.Replace("/", "\\");
Line 110:        string[] subfolders = Directory.GetDirectories(pathFolder);
Line 111:        string[] subfiles = Directory.GetFiles(pathFolder);
Line 112:        /*

Source File: d:\inetpub\vhosts\sportelloenergia.eu\App_Code\web_WebGestione.cs    Line: 110

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\inetpub\vhosts\sportelloenergia.eu\_file\Le migliori offerte'.]
   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.GetDirectories(String path) +73
   WebGestione.GetWebFolder(String root, String path, String NomeFolder, Int32 livello, String numFolder, String txtCerca) in d:\inetpub\vhosts\sportelloenergia.eu\App_Code\web_WebGestione.cs:110
   WebGestione.GetWebFolder(String root, String path, String NomeFolder, Int32 livello, String numFolder) in d:\inetpub\vhosts\sportelloenergia.eu\App_Code\web_WebGestione.cs:102
   _Default.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\sportelloenergia.eu\web\Migliori-Offerte.aspx.cs:18
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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