DAL disassembly in 3-tier arch Problem ASP.net

Sep 6, 2012 at 5:01 AM

I am using an application which is in 3-tier arch. In that DAL contains Microsoft.Practices.EnterpriseLibrary.Common; like other namespaces. When i kept a breakpoint in DAL,  "Database db= DatabaseFactory.CreateDatabase(DBNAME);" code. It wil automatically jumps to another window disassmebly editor. 

"The type Database cannot be constructed. You must configure the container to supply this value. " is the error coming. Its not moving forward and not executed the remaining program.

 

Can anybody help me in this regarding

 

Thanks in advance

Sep 6, 2012 at 5:41 AM

The error can occur for a variety of reasons.  The first thing to check is that a connectionString has been defined in the web.config with the name that matches the DBNAME supplied to CreateDatabase.  A common error is to place the configuration in a file that is not actually loaded at runtime (e.g. an app.config in a DAL Class Library).

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com