Server Error in '/' Application.

Could not find a part of the path 'C:\inetpub\wwwroot\satso\uploaded\albumler\SATSO_Meclis'.

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 'C:\inetpub\wwwroot\satso\uploaded\albumler\SATSO_Meclis'.

Source Error:


Line 48: 
Line 49:             DirectoryInfo di = new DirectoryInfo(sPath);
Line 50:             FileSystemInfo[] files = di.GetFileSystemInfos("*.jpg");
Line 51:             var orderedFiles = files.OrderBy(f => f.CreationTime);
Line 52: 

Source File: c:\inetpub\wwwroot\satso\Albumler.aspx.cs    Line: 50

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\wwwroot\satso\uploaded\albumler\SATSO_Meclis'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   System.IO.FileSystemEnumerableIterator`1.CommonInit() +421
   System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) +515
   System.IO.DirectoryInfo.InternalGetFileSystemInfos(String searchPattern, SearchOption searchOption) +93
   Albumler.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\satso\Albumler.aspx.cs:50
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   Yuxek.Core.YuxekBasePage.OnLoad(EventArgs e) in K:\WebSites\SatsoWebProje\Satso Projects\Yuxek\Yuxek.BasePage.cs:56
   Yuxek.Core.YuxekContentPage.OnLoad(EventArgs e) in K:\WebSites\SatsoWebProje\Satso Projects\Yuxek\Yuxek.Content.Page.cs:44
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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