0
Answer

error: Microsoft Office Access database engine cannot open

JAYRAM

JAYRAM

9y
1.7k
1
when i upload excel file it shows error like
....................................
Server Error in '/InsertExcelFileRecords' Application.

The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively by another user, or you need permission to view and write its data.

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.

Exception Details: System.Data.OleDb.OleDbException: The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively by another user, or you need permission to view and write its data.

Source Error:


Line 41: OleDbCommand Ecom = new OleDbCommand(Query, Econ);
Line 42: // OleDbCommand Ecom2 = new OleDbCommand(Query2, Econ);
Line 43: Econ.Open();
Line 44:
Line 45: DataSet ds=new DataSet();