This project is read-only.

Need Help

Topics: Developer Forum, User Forum
Jul 8, 2008 at 5:01 PM
I had my site up and running no problems, havent even been on it for several months for edits or anything and then tried to log onto it today and got the following, can someone please help translate the message, what went wrong, and how I fix it, thanks.  What could have spontaneously changed all by itself to have caused this problem?


Server Error in '/' Application.

Could not find file 'd:\hosting\mrmeyer4cac\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\mrmeyer4cac\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\mrmeyer4cac\App_Code\Persistable.cs    Line: 54

Stack Trace:

[FileNotFoundException: Could not find file 'd:\hosting\mrmeyer4cac\App_Data\Pages\.config'.]
   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) +114
   System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share) +36
   MyWebPagesStarterKit.Persistable`1.LoadData() in d:\hosting\mrmeyer4cac\App_Code\Persistable.cs:54
   MyWebPagesStarterKit.WebPage..ctor(String id) in d:\hosting\mrmeyer4cac\App_Code\WebPage.cs:30
   _Default.Page_Init(Object sender, EventArgs e) in d:\hosting\mrmeyer4cac\Default.aspx.cs:79
   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.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +9
   System.Web.UI.Control.InitRecursive(Control namingContainer) +321
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834