Server Error in '/' Application.

Could not find file 'C:\inetpub\wwwroot\Downloads\FTC_Latex.zip'.

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\Downloads\FTC_Latex.zip'.

Source Error:


Line 10:         context.Response.ContentType = "application/octet-stream";
Line 11:         context.Response.AppendHeader("Content-Disposition", "attachment;filename=" + filename + ".zip");
Line 12:         context.Response.TransmitFile("/Downloads/" + filename + ".zip");
Line 13:         context.Response.End();
Line 14:     }

Source File: c:\inetpub\wwwroot\ZipFileHandler.ashx    Line: 12

Stack Trace:


[FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\Downloads\FTC_Latex.zip'.]
   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.TransmitFile(String filename, Int64 offset, Int64 length) +136
   PdfFileHandler.ProcessRequest(HttpContext context) in c:\inetpub\wwwroot\ZipFileHandler.ashx:12
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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