I'm working with a project under .NET 4.5 & trying to use EL 5.0 Logging application block. The purpose is to load logging block schema from a separate file. Code which is shown below is executed successfully under .NET 4.0, but throws the FileLoadException exception on the line #2 of the code below (i.e. in new LogWriterFactory(..)):
IConfigurationSource configSource = new FileConfigurationSource("logging.config");
LogWriterFactory factory = new LogWriterFactory(configSource);
LogWriter logWriter = factory.Create();
The exception is (sorry, it is translated into English by me):
Could not load file or assembly "Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" or one of its dependencies. Assembly manifest definition found doesn't correspond to the reference to the assembly. (Exception from HRESULT: 0x80131040)
Does anybody know if there is any chance to make it workable with .NET 4.5?