Loading ...

Data Acces Block - Enterprise Library 5.0

Who is online?  0 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

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

Posted: 6/27/2010

Lurker 20  points  Lurker
  • Joined on: 5/23/2010
  • 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

Professional 8505  points  Professional
  • Joined on: 5/3/2010
  • Posts: 391
  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)