Server Error in '/' Application.

Could not find file 'C:\inetpub\wwwroot\sipac.pr.it\adm\Media\gallery\sipac_Beverage.pdf'.

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.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\sipac.pr.it\adm\Media\gallery\sipac_Beverage.pdf'.

Source Error:


Line 82: 					Response.AddHeader("Content-Disposition", "attachment; filename=""" & replace(MediaUrl," ","_") & """")
Line 83: 					Response.Flush()
Line 84: 					Response.WriteFile(MediaUrlLong)
Line 85: 					Response.End()
Line 86: 				

Source File: C:\inetpub\wwwroot\sipac.pr.it\website\get_download.aspx    Line: 84

Stack Trace:


[FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\sipac.pr.it\adm\Media\gallery\sipac_Beverage.pdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +66
   System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory) +91
   System.Web.HttpResponse.WriteFile(String filename) +18
   ASP.website_get_download_aspx.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\sipac.pr.it\website\get_download.aspx:84
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5483