I use EntLib 4.1, .Net Framework 3.5, VS 2008. I got an error with DataAccessQuickStart sample.
1. Compiled successfully;
2. Show main form: OK;
3. When I clickd on the the buttons of the form, below exception was showed.
An error occurred creating the configuration section handler for dataConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=22.214.171.124, 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:\EntLib41Src\Quick Starts\Data\CS\DataAccessQuickStart\bin\Debug\DataAccessQuickStart.vshost.exe.Config line 3)
I don't know if it is in need of running scripts in the C:\EntLib41Src\Scripts. just run the BuildLibrary.bat only.
Please help me!!!
Did you change the reference of the quickstart project? On a fresh install of the source code, the quickstart reference is a project reference and not assembly reference. Assembly mismatch happens when the one defined in the config is different from the one
that is referenced by the project. To explain it more clearer, please see this : http://entlib.codeplex.com/Wiki/View.aspx?title=Why%20am%20I%20getting%20the%20messages%2c%20%22Could%20not%20load%20file%20or%20assembly%22&referringTitle=Home
Global Technology and Solutions