output cache problem : when any user control registered on a page page not cached

Discussion in 'ASP .Net' started by SharpSmith@gmail.com, Nov 23, 2006.

  1. Guest

    hi all
    i have a strange problem with caching

    very simple cache test page with fallowing code is not cached at
    all(browser/server whatever):


    <%@ Register TagPrefix="uc1" TagName="NewHomePageModule"
    Src="~/Home/Module/NewHomePageModule.ascx" %>
    <%@ Page language="c#" %>
    <%@ OutputCache Duration="60" VaryByParam="*" %>
    <h1>test form</h1>
    <h2><%=DateTime.Now%></h2>

    but when you remove this line :
    <%@ Register TagPrefix="uc1" TagName="NewHomePageModule"
    Src="~/Home/Module/NewHomePageModule.ascx" %>

    and i stay with :

    <%@ Page language="c#" %>
    <%@ OutputCache Duration="60" VaryByParam="*" %>
    <h1>test form</h1>
    <h2><%=DateTime.Now%></h2>



    the caching starting to work correctly

    the stranger thing is that happening only on production box
    (IIS6/ASP.Net 1.1) and on dev box (IIS5/ASP.NET 1.1) code work properly
    in both cases

    i gave here example as simple as posssible, actually the whole caching
    framework we developed is not working on production machine

    please help anybody has an idea or direction to trouble-shoot this
    Thanks much anyway for your attention
    --------------------------------
    From: Yevgeniy Kuznetsov
     
    , Nov 23, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Craig G
    Replies:
    0
    Views:
    409
    Craig G
    Mar 7, 2005
  2. John
    Replies:
    2
    Views:
    1,218
  3. Hennie
    Replies:
    1
    Views:
    120
    Dominick Baier [DevelopMentor]
    Apr 19, 2006
  4. Marcin

    User control and output cache

    Marcin, Jul 29, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    143
    Marcin
    Jul 29, 2003
  5. Ezra Epstein
    Replies:
    3
    Views:
    203
    Ezra Epstein
    Sep 23, 2003
Loading...

Share This Page