Server Error in '/' Application.

Could not find file 'D:\wwwroot\122.114.207.214\inc\temp\yeji.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.FileNotFoundException: Could not find file 'D:\wwwroot\122.114.207.214\inc\temp\yeji.txt'.

Source Error:


Line 1582:            lan = "pagelist";
Line 1583:        }
Line 1584:        list1 = File.ReadAllText(HttpContext.Current.Request.PhysicalApplicationPath + "/inc/temp/" + lan + ".txt", Encoding.UTF8);
Line 1585:        list1 = list1.Replace("{pagelist:pagecount}", fenye_count.ToString());
Line 1586:        if (fenye_count > page_list_size)

Source File: D:\wwwroot\122.114.207.214\App_Code\my_html.cs    Line: 1584

Stack Trace:


[FileNotFoundException: Could not find file 'D:\wwwroot\122.114.207.214\inc\temp\yeji.txt'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +9727023
   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) +1142
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +82
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) +87
   System.IO.StreamReader..ctor(String path, Encoding encoding) +16
   System.IO.File.InternalReadAllText(String path, Encoding encoding) +55
   System.IO.File.ReadAllText(String path, Encoding encoding) +36
   my_html.set_pagelist_all(String list1, Int32 fenye_count, Int32 page_list_size, Int32 d_page, String file_content, String save_path) in D:\wwwroot\122.114.207.214\App_Code\my_html.cs:1584
   my_html.page_w_list(String sql, String sql2, String list_content, String file_content, String list_c, Int32 page) in D:\wwwroot\122.114.207.214\App_Code\my_html.cs:2588
   my_html.set_w_list(String table_name, String n_id, Int32 page) in D:\wwwroot\122.114.207.214\App_Code\my_html.cs:2946
   list.Page_Load(Object sender, EventArgs e) in D:\wwwroot\122.114.207.214\list.aspx.cs:111
   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) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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