Microsoft Access数据库引擎启用oledb连接时无效的参数

我试图在我的解决scheme中已经可用的替代Excel中的值,通过使用Oledb,它在本地运行良好,但它抛出了服务器exception,我已经尝试所有的兼容性问题,但它得到修复。

我的oledb提供者是

Provider=Microsoft.ACE.OLEDB.12.0, 

扩展特性:扩展特性= Excel 12.0

例外:

EventSource:Microsoft Access数据库引擎消息:无效的参数。

堆栈跟踪:在

在System.Data.ProviderBase的System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions选项,DbConnectionPoolKey poolKey,对象poolGroupProviderInfo,DbConnectionPool池,DbConnection拥有对象)System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr,OleDbConnection连接) DbConnectionFactory.CreateNonPooledConnection(的DbConnection owningConnection,DbConnectionPoolGroup poolGroup,DbConnectionOptions USEROPTIONS)在System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(的DbConnection owningConnection,TaskCompletionSource1重试,DbConnectionOptions USEROPTIONS,DbConnectionInternal oldConnection,DbConnectionInternal&连接)在System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal( DbConnection outerConnection,DbConnectionFactory connectionFactory,TaskCompletionSource`1 retry,DbConnectionOptions userOptions)System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnect 离散,DbConnectionFactory连接工厂)在System.Data.OleDb.OleDbConnection.Open()在TTI.TaxExcise.Web.UI.Controllers.TaxableVehicleController.Exporttaxablesuspendedvehicle(Int64 id,string应税)

我的代码在这里

 if (taxablevehicle == true) { OleDbConnection DupConn = new OleDbConnection(); string dupConnection = Constants.Provider2007 + Constants.DataSource + sDupFileName + ";" + Constants.ExtendedProperties2007; DupConn.ConnectionString = dupConnection; DupConn.Open(); //To Insert the Records svlSQL = "Insert into [Sheet1$] (VIN, GrossWeight, IsLoggingVehicle, UnitNumber) Values " + "('" + currVehicleDataUI.VIN + "', '" + sGrossWeight + "', '" + sIsLoggingVehicle + "','" + currVehicleDataUI.UnitNumber + "')"; if (DupConn.State == ConnectionState.Closed) { DupConn.Open(); } OleDbCommand Comm = new OleDbCommand(svlSQL, DupConn); Comm.ExecuteNonQuery(); Comm = null; }