Geeks With Blogs
Prasanna's Blog BizTalk, WCF, C# and Software Factories

Couple of weeks ago i ran into an issue with Entlib 3.1 Common application block versioning  when used with web client software factories

i figured out that repository factory still uses MEL Common 2.0 assembly (the one which comes part of WSSF) and when i migrated my project framework from MEL 2.0 to MEL 3.1 it stared replacing the Common 2.0 to Common 3.1 in the WCF Host bin folder, now the issue is i cannot revert back to my old framework since both WCSF and WSSF makes use of logging, exception etc of MEL 3.1

this might not be best of the solution to overcome this problem, unless untill some one comes up with some bright idea

1 > add the source projects of MEL 2.0 to the solution, for e.g. Cache, Common etc

2> remove the assembly reference for Common from the project

3 > add project reference to the Common, and in the properties "Copy Local" set it to false.

This sholud solve the problem related to "Microsoft.Practices.EnterpriseLibrary.Common.dll'

Now today i did the same for Caching application block with additional couple of steps it works fine

1 > remove binary reference to Caching application block and add the project reference. and in the properties "Copy Local" set it to false

2 > in the caching source project - set the  properties for Common  "Copy Local" set it to false

3 > Modify your App.Config or Web.Config with the following changes

   <section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching" />

<cachingConfiguration defaultCacheManager="Cache Manager">
   <add expirationPollFrequencyInSeconds="60" maximumElementsInCacheBeforeScavenging="1000"
     numberToRemoveWhenScavenging="10" backingStoreName="Null Storage"
     name="Cache Manager" />

   <add encryptionProviderName="" type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=, Culture=neutral, PublicKeyToken=null"
     name="Null Storage" />

if you are fan of agile design to keep the solution simple then Just GAC the Common and Cache Assembly, it should work

- Prasanna

Posted on Wednesday, January 23, 2008 11:12 PM | Back to top

Comments on this post: Issues with Common and Caching Application block + WCSF

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Prasanna Krishnan | Powered by: