I got this error while trying to call the "CreateDatabase()" method on the DataFactory:
Initialization method MyClass threw exception. Microsoft.Practices.ObjectBuilder2.BuildFailedException: Microsoft.Practices.ObjectBuilder2.BuildFailedException: The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type ConfiguredObjectStrategy, index 2) ---> System.ArgumentException: The value can not be null or an empty string..
Found the answer here: http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=31848
It seems that the new library requires an extra setting in your config if you don't specify the connection name.
Add the dataconfiguration element above your connection strings:
<dataConfiguration defaultDatabase="default" />connectionStrings><add name="default" connectionString="Database=ABC;Server=Server;Integrated Security=SSPI" providerName="System.Data.SqlClient"
/>connectionStrings>