Not able to load Custom Cache Manager

Topics: Building and extending application blocks, Caching Application Block
Feb 20, 2012 at 6:36 PM

I have a simple (and somehow embarrassing) problem: I created a custom cache manager but I'm not able to add it to my web.config through the configuration console.

public class AbsoluteExpirationCacheManager : ICacheManager

It compiles ok, then I open configuration console and try to add it to the Caching settings (Add Cache Managers -> Add Custom Cache Manager). I see the "Browsing for types that derive from ICacheManager" dialog, I press "Add from File" button, select the proper assembly but my type is not displayed below "Loaded Assemblies". no error message, just nothing.


I know the dll is the right one, I've verified that contains a ICacheManager implementation with reflector. I just don't understand why the config tool doesn't see it.

Any ideas? Am I missing something?


Feb 21, 2012 at 3:54 PM

Found the problem: I was selecting the dll located on obj folder instead of the bin folder.


Silly me.