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.
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?
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?
Hey,
The problem you have is a .NET problem :
http://msdn.microsoft.com/en-us/magazine/cc163577.aspx
Dave
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?
is working on a reply...