Server Error in '/' Application.

Could not find file 'E:\web\ts2seminars\htdocs\content\.cml'.

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 'E:\web\ts2seminars\htdocs\content\.cml'.

Source Error:


Line 54:         }
Line 55:      
Line 56:         StreamReader sr = File.OpenText(Server.MapPath(path));
Line 57: 
Line 58:         cml_content.Text = sr.ReadToEnd();

Source File: e:\web\ts2seminars\htdocs\main.aspx.cs    Line: 56

Stack Trace:


[FileNotFoundException: Could not find file 'E:\web\ts2seminars\htdocs\content\.cml'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +328
   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) +1038
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +115
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) +88
   System.IO.StreamReader..ctor(String path) +112
   System.IO.File.OpenText(String path) +32
   main.Page_Load(Object sender, EventArgs e) in e:\web\ts2seminars\htdocs\main.aspx.cs:56
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433