Server Error in '/' Application.

Could not find file 'D:\HostingSpaces\admin\osmd.cz\wwwroot\Aton\FileRepository\aton_file_repository_HtmlEditorRepositoryDoc\Root\Cenik inzerce do Strechy A4 2021 new.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 'D:\HostingSpaces\admin\osmd.cz\wwwroot\Aton\FileRepository\aton_file_repository_HtmlEditorRepositoryDoc\Root\Cenik inzerce do Strechy A4 2021 new.pdf'.

Source Error:


Line 60:                 context.Response.Flush();
Line 61: 
Line 62:                 System.IO.FileStream fileStream = new System.IO.FileStream(filePath, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite);
Line 63:                 System.IO.BinaryReader binaryReader = new System.IO.BinaryReader(fileStream);
Line 64: 

Source File: d:\HostingSpaces\admin\osmd.cz\wwwroot\DownloadFileRepository.ashx    Line: 62

Stack Trace:


[FileNotFoundException: Could not find file 'D:\HostingSpaces\admin\osmd.cz\wwwroot\Aton\FileRepository\aton_file_repository_HtmlEditorRepositoryDoc\Root\Cenik inzerce do Strechy A4 2021 new.pdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +311
   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) +1017
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +67
   DownloadFileRepository.ProcessRequest(HttpContext context) in d:\HostingSpaces\admin\osmd.cz\wwwroot\DownloadFileRepository.ashx:62
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +814
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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