I'm getting the following error when executing the DatabaseFactory.CreateDatabase()
function:
"Setup failed to initialize"
The app.config
is as follows:
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
</configSections>
<connectionStrings>
<add name="store" providerName="System.Data.SqlClient" connectionString="Data Source=RL-TERMINAL\SQLEXPRESS; User ID=sa; Password=12345;Initial Catalog=store; timeout=100"/>
</connectionStrings>
<dataConfiguration defaultDatabase="store"/>
</configuration>
What can it be?