Server Error in '/' Application.

Could not find a part of the path '\\smb-whst-www11\whst_www11$\9070985b5.hostnd\htdocs\www\Database\Newsletter\Archivio'.

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 '\\smb-whst-www11\whst_www11$\9070985b5.hostnd\htdocs\www\Database\Newsletter\Archivio'.

Source Error:


Line 153:    private List<String> CreaListaAnni()
Line 154:    {
Line 155:        return new List<String>(Directory.GetDirectories(Server.MapPath(Percorso), "2*", SearchOption.TopDirectoryOnly).Select(Path.GetFileName).OrderByDescending(a => a).ToList());
Line 156:    }
Line 157:

Source File: \\smb-whst-www11\whst_www11$\9070985b5.hostnd\htdocs\www\es\Newsletter.aspx.cs    Line: 155

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path '\\smb-whst-www11\whst_www11$\9070985b5.hostnd\htdocs\www\Database\Newsletter\Archivio'.]
   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, String searchPattern, SearchOption searchOption) +93
   EsNewsletter.CreaListaAnni() in \\smb-whst-www11\whst_www11$\9070985b5.hostnd\htdocs\www\es\Newsletter.aspx.cs:155
   EsNewsletter.Page_Load(Object sender, EventArgs e) in \\smb-whst-www11\whst_www11$\9070985b5.hostnd\htdocs\www\es\Newsletter.aspx.cs:20
   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