i am new in asp.net
i am getting below error when i run my web application on IIS, i tried this code on both xp-64 bit and window-7
'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
and when i run this on port like “http://localhost:1464/Default.aspx” it’s running fine
i am using below code
OleDbCommand excelCommand = new OleDbCommand();
OleDbDataAdapter excelDataAdapter = new OleDbDataAdapter();
string path = Server.MapPath(filename);
string excelConnStr = "provider=Microsoft.Jet.OLEDB.4.0;data source='" + path + "';Extended Properties='Excel 8.0; HDR=Yes; IMEX=1'";
OleDbConnection excelConn = new OleDbConnection(excelConnStr);
excelConn.Open();
you need to configure the application pool to 32 bit mode. check this