I am using Enterprise Library 5.0 I am setting connecting string run time. (Default connection string.)
When Following line is executed,
Database db = DatabaseFactory.CreateDatabase();
I am getting error, "Activation error occured while trying to get instance of type Database, key """
At same time, in app config, there is connecting string.
However, on restarting application, it works fine.
I have also checked Activation error occured while trying to get instance of type Database, key "" <-- blank , but this doesn't help.