Microsoft.EnterpriseLibrary.caching.dll throws an exception

Apr 5, 2012 at 9:00 AM
Edited Apr 5, 2012 at 9:04 AM

Hello All,

While upgrading the enterprise library 3.1 to 5.0.505.0 the enterpriselibrary.caching dll throws an exception "Object reference not set to an instance of an object".

I have changed the web.config configurations also.

I also need an sample application which consists of all the web.config configurations and necessary settings





Apr 10, 2012 at 3:58 PM

Hi Riti,

Is it possible that you cast your object to a wrong type when you fetch the object from cache? Or the cached object is expired?

It is better if you can show your code fragment.