C# .NET - Catalogclass - Asked By Seema Nandi on 25-Mar-06 06:56 AM

ADOX.CatalogClass    odxc        =new ADOX.CatalogClass() ; 

System.Data.OleDb.OleDbConnection    Omaincon = new System.Data.OleDb.OleDbConnection();

Omaincon.ConnectionString ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + ModMain.PL_DATA_FILE_CORRUPTED   + " ;Jet OLEDB:Database Password= xyj ;" ; 

Omaincon.open(); 

odxc.ActiveConnection =  Omaincon;

for this statement 
odxc.ActiveConnection =  Omaincon; it is giving error system.invalidcastException error how to solve this
Asked By Sushila Patel on 25-Mar-06 02:24 PM
Try as given in link http://support.microsoft.com/kb/317881/EN-US/