Ent Lin DAAB error 4.0 RRS feed

  • Question

  • I get this error

    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 Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy, index 2)

    The same configurations work fine with web.config, but does not work with an app.config

    Environment : .NET 3.5 SP1, VS 2008, EntLib 4.0
    Wednesday, September 2, 2009 4:57 AM


  • Hi cudran,


    It is a default behavior to read web.config in web application. Any other config file will be treated as customerized. Since there is not necessary to change the default configuration file name, there isn’t a direct way to do this.

    There is an article about how to refer custom configuration file for your reference:


    If you have any questions or concerns, please update the thread and we will have a further discussion.

    Best Regards

    Yichun Feng


    • Marked as answer by Yichun_Feng Wednesday, September 9, 2009 1:19 AM
    Monday, September 7, 2009 3:31 AM