I have a custom control that shows a value obtained from the database (the price of the product). This value is stored in the cache for performance reasons and it works fine. However, in design mode in Visual Studio 2008, I get an error that says, "Error Rendering Control. An unhandled exception has occurred. Cache is not available"
I'm using a ControlDesigner, with a very simple GetDesignTimeHtml:
public override string GetDesignTimeHtml()
{
return "[$9.99]";
}
I hoped this would fix the problem, but it doesn't.