Server Error in '/' Application.

Could not find a part of the path 'G:\PleskVhosts\vpdca.info\httpdocs\files\Resources\Regional_Centers_Available_Services\HarborRC'.

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 'G:\PleskVhosts\vpdca.info\httpdocs\files\Resources\Regional_Centers_Available_Services\HarborRC'.

Source Error:


Line 37: 
Line 38:         //Display files
Line 39:         foreach (var file in curDir.GetFiles())
Line 40:         {
Line 41:             string virtualPath = convertToVirtualPath(file.FullName);

Source File: g:\pleskvhosts\vpdca.info\httpdocs\DisplayDirectory.aspx.cs    Line: 39

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'G:\PleskVhosts\vpdca.info\httpdocs\files\Resources\Regional_Centers_Available_Services\HarborRC'.]
   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.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption) +68
   System.IO.DirectoryInfo.GetFiles() +20
   DisplayDirectory.buildHtmlTable(String curPhysicalPath) in g:\pleskvhosts\vpdca.info\httpdocs\DisplayDirectory.aspx.cs:39
   DisplayDirectory.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\vpdca.info\httpdocs\DisplayDirectory.aspx.cs:26
   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.4700.0