DatabaseFactory.CreateDatabase() fails
Posted: Mon 26 Oct 2009 04:47
I am using VS2008 with MS enterprise library 1.1 with a target framework of 2.0 and am having a problem with the the call to DatabaseFactory.CreateDatabase(). Although elsewhere in this site it suggests that only the app.config file is required, when I use only this file it fails with a dataconfiguration section not found. I have instead used an app.config and a dataConfiguration.config file to setup the database information required. This works until the create database call at which stage the following error occurrs:-
{"Could not load file or assembly 'Devart.Data, Version=5.40.42.0, Culture=neutral, PublicKeyToken=09af7300eec23701' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Devart.Data, Version=5.40.42.0, Culture=neutral, PublicKeyToken=09af7300eec23701"}
Can someone please explain what is required to correct this, thanks.
The app.config is
The dataconfiguration.config is
{"Could not load file or assembly 'Devart.Data, Version=5.40.42.0, Culture=neutral, PublicKeyToken=09af7300eec23701' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Devart.Data, Version=5.40.42.0, Culture=neutral, PublicKeyToken=09af7300eec23701"}
Can someone please explain what is required to correct this, thanks.
The app.config is
Code: Select all
Code: Select all