Server Error in '/' Application.
Could not find a part of the path 'D:\PLESKVHOST\vhosts\windows.push-staging.com\httpdocs\order_Aob\orders\open_orders.txt'.
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 'D:\PLESKVHOST\vhosts\windows.push-staging.com\httpdocs\order_Aob\orders\open_orders.txt'.
Source Error:
Line 43: }
Line 44: Line 45: StreamWriter MyStreamWriter = new StreamWriter(Server.MapPath("~/order_Aob/orders/open_orders.txt")); Line 46: MyStreamWriter.WriteLine(sb.ToString());
Line 47: MyStreamWriter.Close(); |
Source File: d:\pleskvhost\vhosts\windows.push-staging.com\httpdocs\RecycleTextBook\Web\Li\User\read_order.aspx.cs Line: 45
Stack Trace:
[DirectoryNotFoundException: Could not find a part of the path 'D:\PLESKVHOST\vhosts\windows.push-staging.com\httpdocs\order_Aob\orders\open_orders.txt'.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193 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) +1162 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +65 System.IO.StreamWriter.CreateFile(String path, Boolean append) +62 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +58 System.IO.StreamWriter..ctor(String path) +30 Web.Li.User.read_order.Page_Load(Object sender, EventArgs e) in d:\pleskvhost\vhosts\windows.push-staging.com\httpdocs\RecycleTextBook\Web\Li\User\read_order.aspx.cs:45 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 |
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456
Thanks For Help in Advance.
Gaurav Bhandari