Server Error in '/' Application.

Path cannot be null.
Parameter name: path

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.ArgumentNullException: Path cannot be null.
Parameter name: path

Source Error:


Line 47:         	string filePath;
Line 48:             new DownloadImageController().GetFileDOPath(fileId, out fileName, out filePath);
Line 49:             bytes = File.ReadAllBytes(filePath);
Line 50:         }
Line 51:         

Source File: c:\inetpub\wwwroot\pub-mex\QLA\Download.ashx    Line: 49

Stack Trace:


[ArgumentNullException: Path cannot be null.
Parameter name: path]
   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) +264
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +89
   System.IO.File.ReadAllBytes(String path) +76
   Download.ProcessRequest(HttpContext context) in c:\inetpub\wwwroot\pub-mex\QLA\Download.ashx:49
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171


Version Information: Microsoft .NET Framework Version:2.0.50727.8813; ASP.NET Version:2.0.50727.8951