locked
The ConnectionString property has not been initialized RRS feed

  • Question

  • User1284890338 posted

    Hi, I am using Microsoft.Practices.EnterpriseLibrary.Data is my class to create connection to oracle database. here it is:

    database db = new database();

    cmd = db.GetSqlStringCommand(strSQL.ToString());
    db.ExecuteDataSet(cmd);

    And getting error :  The ConnectionString property has not been initialized

    web.config :

    <connectionStrings>
    <clear/>
    <add name="test" connectionString="Data Source=test; User ID=test; Password=test;Pooling=true;Min Pool size=0;Max Pool Size=50;" providerName="System.Data.OracleClient"/>
    </connectionStrings>

    Help please!!!!!

    Wednesday, July 22, 2015 2:27 PM

All replies