Enterprise Library, Is it possible to mix Caching Application Block 2.0 and 1.1 in a single .NET

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"> </section>

</configSections>

......

Any

comments and feedback are truly appreciated.

[1668 byte] By [Y.B] at [2007-12-27]
# 1

From the prototype I did, it looks like it runs. But my questions are still there:

  • Is it a good or bad design?

  • Any potential problems it may cause?
  • Y.B

    Y.B at 2007-9-3 > top of Msdn Tech,Visual C#,Visual C# General...