Server Error in '/' Application.

Could not find file 'C:\inetpub\wwwroot\timothysklugh\studio\mp3fulls\Timothy_S_Klugh-WHIK-MASTER.mp3'.

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\timothysklugh\studio\mp3fulls\Timothy_S_Klugh-WHIK-MASTER.mp3'.

Source Error:


Line 265:        cntrspContextResponse.AddHeader("Content-Disposition", "attachment; filename=" + l_strFileName)
Line 266:        cntrspContextResponse.ContentType = "text/plain"
Line 267:        cntrspContextResponse.WriteFile(context.Server.MapPath("~\studio\mp3fulls\" & l_strFileName))
Line 268:        
Line 269:    End Sub

Source File: C:\inetpub\wwwroot\timothysklugh\tsk2015\DownloadHandler.ashx    Line: 267

Stack Trace:


[FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\timothysklugh\studio\mp3fulls\Timothy_S_Klugh-WHIK-MASTER.mp3'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +519
   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) +776
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +65
   System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory) +80
   System.Web.HttpResponse.WriteFile(String filename) +19
   DownloadHandler.ProcessRequest(HttpContext context) in C:\inetpub\wwwroot\timothysklugh\tsk2015\DownloadHandler.ashx:267
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


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