Problem Filling Datagrid

I have this problem when filling a datagrid. The Stack Trace says install MDAC but I've reinstalled various versions of MDAC 2.6 and above without any success.<BR><BR>Code Below:<BR><BR>Class not registered <BR>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <BR><BR>Exception Details: System.Runtime.InteropServices.COMException: Class not registered<BR><BR>Source Error: <BR><BR><BR>Line 20: 'Fill Dataset...<BR>Line 21: Dim ds As DataSet = new Dataset()<BR>Line 22: objCmd.Fill(ds, "FeedbackTable")<BR>Line 23: <BR>Line 24: MyDataGrid.DataSource = ds.Tables("FeedbackTable").DefaultView<BR> <BR><BR>Source File: C:webdevdata1.aspx Line: 22 <BR><BR>Stack Trace: <BR><BR><BR>[COMException (0x80040154): Class not registered]<BR> System.Data.Common.UnsafeNativeMethods.CoCreateIns tance(Guid& rclsid, IntPtr pUnkOuter, Int32 dwClsContext, Guid& riid) +0<BR> System.Data.OleDb.OleDbConnection.CreateInstanceMD AC() +161<BR><BR>[InvalidOperationException: The .Net Data OLE DB Provider(System.Data.OleDb) requires Microsoft Data Access Components(MDAC). Please install Microsoft Data Access Components(MDAC) version 2.6 or later.]<BR> System.Data.OleDb.OleDbConnection.CreateInstanceMD AC() +252<BR> System.Data.OleDb.OleDbConnection.GetObjectPool(Bo olean parsing) +118<BR> System.Data.OleDb.OleDbConnection.CreateProvider() +13<BR> System.Data.OleDb.OleDbConnection.Open() +107<BR> System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection, ConnectionState& originalState) +44<BR> System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +98<BR> System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77<BR> System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +36<BR> ASP.data1_aspx.BindData() in C:webdevdata1.aspx:22<BR> ASP.data1_aspx.Page_Load(Object Sender, EventArgs E) in C:webdevdata1.aspx:8<BR> System.Web.UI.Control.OnLoad(EventArgs e) +67<BR> System.Web.UI.Control.LoadRecursive() +29<BR> System.Web.UI.Page.ProcessRequestMain() +724<BR><BR> <BR>did you import System.Data.OleDb ? I was thinking that .net used ADO 2.7, I could be wrong though.
 
Back
Top