Server Error in '/' Application.

Could not find a part of the path 'C:\Inetpub\Acceptance\Logs\tips.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 'C:\Inetpub\Acceptance\Logs\tips.txt'.

Source Error:


Line 291:    {
Line 292:        //set up a filestream
Line 293:        FileStream fs = new FileStream(@"C:\Inetpub\Acceptance\Logs\tips.txt", FileMode.OpenOrCreate, FileAccess.Write);
Line 294:
Line 295:        //set up a streamwriter for adding text

Source File: c:\inetpub\wwwroot\UserPages\Tips.aspx.cs    Line: 293

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\Acceptance\Logs\tips.txt'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   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) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) +125
   UserPages_Tips.TraceService(String content) in c:\inetpub\wwwroot\UserPages\Tips.aspx.cs:293
   UserPages_Tips.Getlist() in c:\inetpub\wwwroot\UserPages\Tips.aspx.cs:209
   UserPages_Tips.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\UserPages\Tips.aspx.cs:132
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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