V aplikaci / došlo k chybě serveru.

Část cesty C:\inetpub\wwwroot\JPO2\images\photogallery\Po%C5%BE%C3%A1r%20Roudn%C3%ADky%2027.4.12 nebyla nalezena.

Popis: Při provádění aktuálního webového požadavku došlo k neošetřené výjimce. Další informace o chybě a o jejím původu v kódu naleznete v trasování zásobníku.

Podrobnosti o výjimce: System.IO.DirectoryNotFoundException: Část cesty C:\inetpub\wwwroot\JPO2\images\photogallery\Po%C5%BE%C3%A1r%20Roudn%C3%ADky%2027.4.12 nebyla nalezena.

Zdrojová chyba:


Řádek 22:         DirectoryInfo directoryInfo = new DirectoryInfo(Server.MapPath("~//images//photogallery//" + Request.QueryString["gallery"] + "//"));
Řádek 23:         DirectoryInfo xxx = new DirectoryInfo(Server.MapPath("~/images/photogallery/" + Request.QueryString["gallery"] + "/"));
Řádek 24:         foreach (FileInfo fileInfo in directoryInfo.GetFiles())
Řádek 25:         {
Řádek 26:             Encosia.HighslideImage hsl = new Encosia.HighslideImage();

Zdrojový soubor: c:\inetpub\wwwroot\JPO2\Pages\Fotogalerie.aspx.cs    Řádek: 24

Trasování zásobníku:


[DirectoryNotFoundException: Část cesty C:\inetpub\wwwroot\JPO2\images\photogallery\Po%C5%BE%C3%A1r%20Roudn%C3%ADky%2027.4.12 nebyla nalezena.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +271
   System.IO.FileSystemEnumerableIterator`1.CommonInit() +411
   System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) +488
   System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption) +90
   Admin_Fotogalerie.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\JPO2\Pages\Fotogalerie.aspx.cs:24
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Informace o verzi: Microsoft .NET Framework verze:4.0.30319; verze ASP.NET:4.7.4087.0