R
rh.krish
Hi
I'm trying to open an excel file uploaded by the user and read the
content. I'm able to save the file in the web server, but when I try to
open it - I get the following error:
"The Microsoft Jet database engine cannot open the file ''. It is
already opened exclusively by another user, or you need permission to
view its data.
"
This is the code i used to get the data:
fileName = "Shippers.xls";
string excelConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Extended
Properties='Excel 8.0;HDR=Yes';Data Source=" + fileName;
OleDbConnection con = new OleDbConnection ( excelConStr );
con.Open ();
......
......
......
I had granted write access to the folder (where i save the file) and
the MACHINE\ASPNET account - but no use.
Help please!....
Regards,
Hari.
I'm trying to open an excel file uploaded by the user and read the
content. I'm able to save the file in the web server, but when I try to
open it - I get the following error:
"The Microsoft Jet database engine cannot open the file ''. It is
already opened exclusively by another user, or you need permission to
view its data.
"
This is the code i used to get the data:
fileName = "Shippers.xls";
string excelConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Extended
Properties='Excel 8.0;HDR=Yes';Data Source=" + fileName;
OleDbConnection con = new OleDbConnection ( excelConStr );
con.Open ();
......
......
......
I had granted write access to the folder (where i save the file) and
the MACHINE\ASPNET account - but no use.
Help please!....
Regards,
Hari.