none
Enterprise Library, Is it possible to mix Caching Application Block 2.0 and 1.1 in a single .NET 2.0 application? RRS feed

  • Question

  • I have a .NET 2.0 C# application (.exe) which references two class libraries

    • LibOne.dll is NET 2.0 code which uses Enterprise Library Caching Application Block 2.0
    • LibTwo.dll is.NET 1.1 code which uses Enterprise Library Caching Application Block 1.1 (this .NET 1.1 code has too many other dependency, and cannot migrate to .NET 2.0 at this time)

    These two class libraries cache different things without overlap. My questions are

    • Is it possible?
    • Any potential problems it may cause?

    I was told that if I put Enterprise Library Caching Application Block 2.0 in GAC, and Enterprise Library Caching Application Block 1.1 in my application’s runtime folder, it should work with application configuration like following

     

    ......

    <configSections>

    <section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings,Microsoft.Practices.EnterpriseLibrary.Caching, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af1e670cc00fe088" />

        <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af1e670cc00fe088" />

        <section name="enterpriselibrary.configurationSettings" type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

      </configSections>

    ......

    Any comments and feedback are truly appreciated.

    Saturday, December 9, 2006 6:57 AM

All replies

  • From the prototype, I found the application could work, but I still have questions:

  •  Is it a good or bad design?
  • Any potential problems it may cause?
  • Y.B

Monday, December 11, 2006 11:23 PM