I am having the same problem. Not sure what goes wrong. Would you take a look into this?
Here is my App.config file:
<?xml version="1.0" encoding="utf-8" ?>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
<dataConfiguration defaultDatabase="TEST" />
<add name="TEST" connectionString="Data Source=CB826832;Initial Catalog=myDBTest;Integrated Security=SSPI;"
In my BLL file, I have this line of code:
Database db = DatabaseFactory.CreateDatabase();
It gets an error as Activation error occured while trying to get instance of type Database, key """
My solution has two projects: One for all the classes (which are BLL methods), the other project is regular web project. In this web project, I reference to the other project dlls. They are very straight forward. Not sure why
it bombs out.
Environments: VS2010 | SQL server2008 | Enterprise Library 5.0
Thank you much for your help.