Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew L 44 posts 44 karma points
    Jun 24, 2009 @ 07:54
    Andrew L
    0

    OutputCache umbraco user control macro

    I am trying to get output caching work but not having any luck.

    If I use the OutputCache directive I get the error:

    Unable to cast object of type 'System.Web.UI.PartialCachingControl' to type 'System.Web.UI.UserControl'.
      at umbraco.macro.loadUserControl(String fileName, Hashtable attributes, Hashtable pageElements)

    Sometimes I also get a Multiple controls with the same ID error.


    Using umbraco's built-in caching doesn't seem to work either as it doesn't vary the cache by querystring.

    Can anyone help me out?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jun 24, 2009 @ 10:45
    Dave Woestenborghs
    0

    Hey,

    The problem you have is a .NET problem :

    http://msdn.microsoft.com/en-us/magazine/cc163577.aspx

    Dave

  • Andrew L 44 posts 44 karma points
    Jun 25, 2009 @ 07:15
    Andrew L
    0

    Hi, thanks,

    According to that article though the problem can fixed by changing the way user controls are loaded - isn't that Umbraco's responsibility to load the user control correctly?

Please Sign in or register to post replies

Write your reply to:

Draft