1

Has anyone seen this error before?

An error occurred creating the configuration section handler for cachingConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C:\WorkingDir\Projects\ReportCentral\ReportCentral\bin\Debug\ReportCentral.vshost.exe.config line 5)

I am using Ent Lib 4.0. I changed my App Traget Framework from 2.0 to 3.5.

Edit ~

I have the following in the bin

Caching.dll Common.dll ObjectBuilder2.dll

Edit ~ "Solution"

This was the deal, when referencing dlls in the C:\EntLib4Src\bin, they are signed and could only be configured by the EntLibConfig.exe found in that same folder and not the one from "Start>Programs>Microsoft Patterns...>Ent Wasn't that tricky?

Matthew Murdoch
  • 30,874
  • 30
  • 96
  • 127
Saif Khan
  • 18,402
  • 29
  • 102
  • 147

2 Answers2

2

That means it can't find the file. So you either need to put it into the GAC or the bin folder so that the assembly can be loaded.

Bryant
  • 8,660
  • 1
  • 33
  • 53
  • I have the following in the bin Caching.dll Common.dll ObjectBuilder2.dll – Saif Khan Oct 09 '08 at 18:23
  • Hmm.. I have a project with those references and I can switch between the 2.0 and 3.5 target types with no issues. I'm assuming you're abbreviating those dll names right? – Bryant Oct 09 '08 at 19:21
  • This was the deal, when referencing dlls in the C:\EntLib4Src\bin, they are signed and could only be configured by the EntLibConfig.exe found in that same folder and not the one from "Start>Programs>Microsoft Patterns...>Ent Wasn't that tricky? – Saif Khan Oct 11 '08 at 00:05
0

This was the deal, when referencing dlls in the C:\EntLib4Src\bin, they are signed and could only be configured by the EntLibConfig.exe found in that same folder and not the one from "Start>Programs>Microsoft Patterns...>Ent Wasn't that tricky?

Saif Khan
  • 18,402
  • 29
  • 102
  • 147