Errore server nell'applicazione '/'.

Impossibile trovare il file 'C:\inetpub\wwwroot\public\corsi\f20c5193-0426-49be-baac-099446e9b29c.pdf'.

Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere la traccia dello stack.

Dettagli eccezione: System.IO.FileNotFoundException: Impossibile trovare il file 'C:\inetpub\wwwroot\public\corsi\f20c5193-0426-49be-baac-099446e9b29c.pdf'.

Errore nel codice sorgente:


Riga 13:             Response.AddHeader("Content-Disposition", "attachment;filename=""" & Replace(Server.UrlEncode(dtr("nome_file_originale")), "+", " ") & """")
Riga 14:             Dim filePath As String = Server.MapPath("public/corsi/" & dtr("nome_file"))
Riga 15:             Response.WriteFile(filePath)
Riga 16:             Response.End()
Riga 17:         End If

File di origine: C:\inetpub\wwwroot\getFile.aspx    Riga: 15

Traccia dello stack:


[FileNotFoundException: Impossibile trovare il file 'C:\inetpub\wwwroot\public\corsi\f20c5193-0426-49be-baac-099446e9b29c.pdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1344
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +123
   System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory) +103
   ASP.getfile_aspx.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\getFile.aspx:15
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Informazioni di versione: Versione di Microsoft .NET Framework:4.0.30319; Versione di ASP.NET:4.7.3930.0