i am using Enterprice Library 5.0
I have written the code in app.confog as follows
<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="RetailData" /> <connectionStrings> <add name="RetailData" connectionString="Data Source=.;Initial Catalog=RetailData;Integrated Security=True"
providerName="System.Data.SqlClient" /> </connectionStrings>
and i am trying to to access the Instance like
_db = DatabaseFactory.CreateDatabase(RS.Retail);
where RS is a Resource file for variable Retail and value is RetailData
i get this: Activation error occured while trying to get instance of type Database, key "RetailData"
Please reply me i am trying this from one week .
i got so forums but they are written same things that i have written in my code.