'Microsoft.Practices.EnterpriseLibrary.Caching.CacheFactory' threw an exception

Posted by user281180 on Stack Overflow See other posts from Stack Overflow or by user281180
Published on 2010-05-06T10:46:43Z Indexed on 2010/05/06 11:28 UTC
Read the original article Hit count: 3195

Filed under:
|
|

Hi I`m having the error message:

The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Caching.CacheFactory' threw an exception.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 30: private static ICacheManager GetCacheManager() Line 31: { Line 32: return CacheFactory.GetCacheManager(cacheManagerName); Line 33: } Line 34: }

Source File: C:\Dev\DEV\HotHouse\HotHousetest3_rtmClone107\Code\MvcUI\State\PersistentCache.cs Line: 32

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

, whereas my colleages using the same dll, are not having the error message. Help please.

I have Microsoft.Practices.EnterpriseLibrary.Caching and Microsoft.Practices.EnterpriseLibrary.Common as references both version 4.1.0.0 and runtime version v2.0.50727.

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about ASP.NET