Server Error in '/' Application.

Could not find a part of the path 'D:\inetpub\webs\manuelstoreit\public\gallery\PU11320B'.

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\webs\manuelstoreit\public\gallery\PU11320B'.

Source Error:


Line 78: 		
Line 79: 				Dim fil, files() As String
Line 80: 				files = Directory.GetFiles(Server.MapPath("public/gallery/"& fixCode(Context.Items("codiceProdotto")) &"/"))
Line 81: 				For Each fil In files
Line 82: 					Dim fileDirectory as string = "/public/gallery/"& fixCode(Context.Items("codiceProdotto")) &"/" & fil.Replace(Server.MapPath("/public/gallery/"& fixCode(Context.Items("codiceProdotto")) &"/"), "")

Source File: D:\inetpub\webs\manuelstoreit\scheda.aspx    Line: 80

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\inetpub\webs\manuelstoreit\public\gallery\PU11320B'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +449
   System.IO.FileSystemEnumerableIterator`1.CommonInit() +161
   System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) +498
   System.IO.Directory.GetFiles(String path) +64
   ASP.scheda_aspx.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\manuelstoreit\scheda.aspx:80
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2852


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