zoukankan      html  css  js  c++  java
  • 未在本地计算机上注册“Microsoft.Jet.OleDb.4.0”提供程序

    其错误如下:

    System.InvalidOperationException: 未在本地计算机上注册“Microsoft.Jet.OleDb.4.0”提供程序。    在 System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)    在 System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)    在 System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)    在 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)    在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)    在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)    在 System.Data.OleDb.OleDbConnection.Open()    在 ExcelOperation.ImportFromExcel(String fileName, String strSql)    在 Retiree_ImportData.btnImport_Click(Object sender, EventArgs e)    在 System.Web.UI.WebControls.Button.OnClick(EventArgs e)    在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)    在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)    在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    后来了解到客户的操作系统为64位,通过IIS程序池设置中启用32位应用程序选项中设置为True,问题随即解决如下图:

  • 相关阅读:
    数据结构学习
    古兰查询 之查询页面隐藏
    Qt只QSetting
    学习下知然网友写的taskqueue
    producter-consumer 他山之石
    unix缓冲
    Buffering of C streams
    POCO Log库
    linux下open和fopen的区别
    dup2替换
  • 原文地址:https://www.cnblogs.com/webyu/p/2990196.html
Copyright © 2011-2022 走看看