App_Data\Pages\.config .. caching problem ?

Topics: Developer Forum, User Forum
Nov 24, 2010 at 7:58 AM

Hello,

I have the same error as many of you had (have?)...

When modifying the navigation, sometimes I get this error (it is ONLY happening in the hosting env., locally it works fine):

Server Error in '/starterkit/ Application.
--------------------------------------------------------------------------------

Could not find a part of the path 'C:\Programming\Website\starterkit\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.DirectoryNotFoundException: Could not find a part of the path '..........\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: c:\Programming\Website\huntersim.evok.dk\App_Code\Persistable.cs Line: 54

Looking at the Persistence.cs, it looks like Caching might be an issue....

How did you solve it ??

Thank you for your help.