Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 712471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:51:07+00:00 2026-05-14T04:51:07+00:00

When I add either one of these … <%@ OutputCache Duration="600" Location="Any" VaryByParam="*" %>

  • 0

When I add either one of these …

<%@ OutputCache Duration="600" Location="Any" VaryByParam="*" %>

or

<%@ OutputCache CacheProfile="CmsArticlesListOrItem" %>

(.. and this into the web.config file...)
<caching>
    <outputCacheSettings>
        <outputCacheProfiles>
            <add name="CmsArticlesListOrItem" duration="600" varyByParam="*" />
         </outputCacheProfiles>
    </outputCacheSettings>

    <sqlCacheDependency ........ ></sqlCacheDependency
</caching>

my page/site crashes with the following error:-

Source: System.Web
----------------------------------------------------------------------------
TargetSite: System.Web.DirectoryMonitor FindDirectoryMonitor(System.String, Boolean, Boolean)
----------------------------------------------------------------------------
Message:System.Web.HttpException: Directory 'C:\Web Sites\My Site Foo - Main Site\Controls\InfoAdvice' does not exist. Failed to start monitoring file changes.
   at System.Web.FileChangesMonitor.FindDirectoryMonitor(String dir, Boolean addIfNotFound, Boolean throwOnError)
   at System.Web.FileChangesMonitor.StartMonitoringPath(String alias, FileChangeEventHandler callback, FileAttributesData& fad)
   at System.Web.Caching.CacheDependency.Init(Boolean isPublic, String[] filenamesArg, String[] cachekeysArg, CacheDependency dependency, DateTime utcStart)
   at System.Web.Caching.CacheDependency..ctor(Int32 dummy, String[] filenames, DateTime utcStart)
   at System.Web.Hosting.MapPathBasedVirtualPathProvider.GetCacheDependency(String virtualPath, IEnumerable virtualPathDependencies, DateTime utcStart)
   at System.Web.ResponseDependencyList.CreateCacheDependency(CacheDependencyType dependencyType, CacheDependency dependency)
   at System.Web.HttpResponse.CreateCacheDependencyForResponse(CacheDependency dependencyVary)
   at System.Web.Caching.OutputCacheModule.InsertResponse(HttpResponse response, HttpContext context, String keyRawResponse, HttpCachePolicySettings settings, CachedVary cachedVary, CachedRawResponse memoryRawResponse)
   at System.Web.Caching.OutputCacheModule.OnLeave(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Ok .. so for some reason, the OutputCache wants a folder/file to be there? ? ? ?

Well, i’ve had this site live for around 3 years and i’m pretty sure that the folders \Controls and \Controls\InfoAdvice doesn’t exist on my production server. On my localhost, it sure does .. and contains a large list of ascx controls.

But they don’t exist on my live server.

So … what is going on here?

Can anyone please help?

Oh 🙂 Before someone suggests I create those two folders and even stick a random file in those folders .. and have some random text in those random files .. i’ve done that and it doesn’t seem to work, still 🙁

Please Help !

Update

When i tried to do a FAILED REQUEST TRACE with IIS, I noticed this….

alt text http://img136.imageshack.us/img136/1351/notsure.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:51:07+00:00Added an answer on May 14, 2026 at 4:51 am

    Hmm. I’m not sure if this is an acceptable answer or not, but I’ve sorta figure this out.

    1. The project is an ASP.NET Web Site (as opposed to a Web Aplication or an MVC1/2 type).
    2. I had to create a folder for the control, which exists on the aspx page. (eg. \controls\infoadvice
    3. I had to create a folder for the master page, which is used by the page \masterpages

    I then added a simple txt file into both those new folders .. with some dummy content in them. This enabled those folders (and dummy files) to be published when the project is ‘built’ for deployment (i’m using Web Deployment Projects + TFS Build).

    Now it works.

    So the problem was that the Caching requires a check for the folder. I’m guessing that the account (NetworkSystem) just doesn’t allow it to create the folder if it doesn’t exist .. even though i manually gave permissions to the root folder (and i assume, children).

    Oh well – problem solved. I don’t like it .. but it’s solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My question is simple. Can I add either of the blow :prompt => Any
I have to add either an embed tag for Firefox or an object tag
I add my page top link button like this: <a name=top></a> . . .
I want to add StyleSheets programmatically in the head section but one of the
I have three lists. Depending on user interaction, these list may either be available
I have set up a dialog with several tabs. One of these contains twenty
This is a hard one to explain but here goes. I have 2 arrays,
Add service reference to Amazon service fails, saying Could not load file or assembly
Quick add on requirement in our project. A field in our DB to hold
I add a web reference to my wse 3.0 service in Visual Studio 2005

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.