Server Error in '/' Application.

Could not find a part of the path 'd:\wwwroot\syfls\wwwroot\template\default\'.

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:\wwwroot\syfls\wwwroot\template\default\'.

Source Error:


Line 2745:        }
Line 2746:
Line 2747:        file_content = File.ReadAllText(HttpContext.Current.Request.PhysicalApplicationPath + "/template/" + my_b.set_moban(ConfigurationSettings.AppSettings["template"].ToString(), ConfigurationSettings.AppSettings["templatewap"].ToString(), "/" + file_content), Encoding.UTF8);
Line 2748:        file_content = set_sitekey(file_content);
Line 2749:

Source File: d:\wwwroot\syfls\wwwroot\App_Code\my_html.cs    Line: 2747

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'd:\wwwroot\syfls\wwwroot\template\default\'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +224
   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) +1352
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +66
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) +101
   System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost) +62
   System.IO.File.ReadAllText(String path, Encoding encoding) +38
   my_html.set_w_list(String table_name, String n_id, Int32 page) in d:\wwwroot\syfls\wwwroot\App_Code\my_html.cs:2747
   list.Page_Load(Object sender, EventArgs e) in d:\wwwroot\syfls\wwwroot\list.aspx.cs:111
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


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