Server Error in '/' Application.

Could not find a part of the path 'E:\RR_ERPNew\Bond_Pdf\PDF\SREI_INFRASTRUCTURE_FINANCE_LIMITED\SREI_FormO2015.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.DirectoryNotFoundException: Could not find a part of the path 'E:\RR_ERPNew\Bond_Pdf\PDF\SREI_INFRASTRUCTURE_FINANCE_LIMITED\SREI_FormO2015.pdf'.

Source Error:


Line 62:             GC.Collect();
Line 63:             GC.WaitForPendingFinalizers();
Line 64:             mender = new PdfFileMend("E:\\RR_ERPNew\\Bond_Pdf\\PDF\\SREI_INFRASTRUCTURE_FINANCE_LIMITED\\SREI_FormO2015.pdf", "E:\\RR_ERPNew\\Bond_Pdf\\PDF\\SREI_INFRASTRUCTURE_FINANCE_LIMITED\\SREI_FormN2015" + i + ".pdf");
Line 65:             FormattedText text = new FormattedText(MinCode.Trim().ToString(), Color.Black, Color.Transparent, Aspose.Pdf.Kit.FontStyle.CourierBold, EncodingType.Winansi, true, 10);
Line 66:             //add text 

Source File: d:\RR ALL Work\RR Websites\RR_ERPNew\Bond_Pdf\Reliance11Jan17.aspx.cs    Line: 64

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'E:\RR_ERPNew\Bond_Pdf\PDF\SREI_INFRASTRUCTURE_FINANCE_LIMITED\SREI_FormO2015.pdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +373
   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) +738
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +68
   Aspose.Pdf.Kit.PdfFileMend..ctor(String inputFileName, String outputFileName) +94
   Reliance11Jan17.createpdf() in d:\RR ALL Work\RR Websites\RR_ERPNew\Bond_Pdf\Reliance11Jan17.aspx.cs:64
   Reliance11Jan17.Page_Load(Object sender, EventArgs e) in d:\RR ALL Work\RR Websites\RR_ERPNew\Bond_Pdf\Reliance11Jan17.aspx.cs:24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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