Windows 7 error.. RRS feed

  • Question

  • Hi All,
    I am using Windows 7 Home Premium OS ,Recently i getting following error window when I run the C# programs.

    In my program I create my databases in MS Access and I connect it to the program following C# Sourse Code..



    string Connect = (@"Provider=Microsoft.JET.OLEDB.4.0;Data Source=C:\Buddhika\Ticketing1.mdb");


    OleDbConnection con = new OleDbConnection(Connect);


    OleDbCommand thisCommand = con.CreateCommand();


    thisCommand.CommandText =

    "SELECT * FROM FlightDe";


    OleDbDataAdapter Db = new OleDbDataAdapter(thisCommand);


    DataSet Ds = new DataSet();


    dataGridView1.DataSource = Ds.Tables[0];


    When I run this code I have ricived this error message

    "The 'Microsoft.JET.OLEDB.4.0' provider is not registered on the local machine."

    Please help me to solve my problem...!

    Thank you...

    Tuesday, August 3, 2010 11:14 AM