Server Error in '/' Application.

Could not find file 'C:\WEBSITES\ermesfontana\adm\Media\gallery\BLU_PRE.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:\WEBSITES\ermesfontana\adm\Media\gallery\BLU_PRE.pdf'.

Source Error:


Line 108:						Response.AddHeader("Content-Disposition", "attachment; filename=" & replace(MediaUrl," ","_"))
Line 109:						Response.Flush()
Line 110:						Response.WriteFile(MediaUrlLong)
Line 111:						Response.End()
Line 112:					

Source File: C:\WEBSITES\ermesfontana\website\get_download.aspx    Line: 110

Stack Trace:


[FileNotFoundException: Could not find file 'C:\WEBSITES\ermesfontana\adm\Media\gallery\BLU_PRE.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:\WEBSITES\ermesfontana\website\get_download.aspx:110
   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.8669; ASP.NET Version:2.0.50727.5491