Who is online?  71 guests and 0 members
home »forums »asp.net topics »data access »Data Acces Block - Enterprise Library 5.0

Data Acces Block - Enterprise Library 5.0

Topic RSS Feed

Posts under the topic: Data Acces Block - Enterprise Library 5.0

Posted: 6/27/2010 6:29:57 PM

Lurker 20  points  Lurker
  • Joined on: 5/23/2010 1:04:18 AM
  • Posts: 4

I am trying to use the enterprise library for Data access but it is not working. I downloaded the libraries and added a reference to Microsoft.Practices.EnterpriseLibrary.Data.dll and also added the following statements.

 

using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Data;

But when I try to create a Database object I get the following error.

Database db = new Microsoft.Practices.EnterpriseLibrary.Data.Database();

 

Cannot create an instance of the abstract class or interface Microsoft.Practices.EnterpriseLibrary.Data.Database


Posted: 6/29/2010 11:26:04 PM

Contributor 2499  points  Contributor
  • Joined on: 5/3/2010 8:45:04 PM
  • Posts: 145
answered  Answered

Can you check the following article: http://msdn.microsoft.com/en-us/magazine/cc188705.aspx - and see if it will help you...


Page 1 of 1 (2 items)