This project is read-only.

Need help with this too

Topics: Developer Forum, Localization Forum, Project Management Forum, User Forum
Feb 7, 2010 at 1:37 AM

Dont know what I did, but everytime I try to create a new page I get the following error, then when I hit the back button on the browser the page is there.  It hasnt stopped me from creating new pages, but darn it is annoying.  Is there somewhere a novice such as myself can go to learn how to read stack traces?



Server Error in '/' Application.

Could not find file 'D:\Hosting\5412965\html\App_Data\Pages\.config'.

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:\Hosting\5412965\html\App_Data\Pages\.config'.

Source Error:

Line 52:                     //if nothing was found in the cache, the data must be loaded from the disk
Line 53:                     //load and deserialize the data from the filesystem
Line 54:                     using (FileStream reader = File.Open(_path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
Line 55:                     {
Line 56:                         XmlSerializer serializer = new XmlSerializer(typeof(T));

Source File: d:\hosting\5412965\html\App_Code\Persistable.cs    Line: 54

Stack Trace:

[FileNotFoundException: Could not find file 'D:\Hosting\5412965\html\App_Data\Pages\.config'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   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) +66
   System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share) +36
   MyWebPagesStarterKit.Persistable`1.LoadData() in d:\hosting\5412965\html\App_Code\Persistable.cs:54
   MyWebPagesStarterKit.WebPage..ctor(String id) in d:\hosting\5412965\html\App_Code\WebPage.cs:31
   Administration_Navigation.showPageDetails(String pageId) in d:\hosting\5412965\html\Administration\Navigation.aspx.cs:267
   Administration_Navigation.Page_Load(Object sender, EventArgs e) in d:\hosting\5412965\html\Administration\Navigation.aspx.cs:56
   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