2014-10-28 99 views
1

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.错误: 'Microsoft.Jet.OLEDB.4.0' 提供者未注册在本地计算机没有得到固定

描述:

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.

异常详细信息:

System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

源错误:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

堆栈跟踪:

[InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.] 
    System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) +1818591 
    System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +148 
    System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +100 
    System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +45 
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +6303166 
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6303479 
    System.Data.OleDb.OleDbConnection.Open() +47 
    NameValuePair.gvbind() +66 
    NameValuePair.Page_Load(Object sender, EventArgs e) +39 
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42 
    System.Web.UI.Control.OnLoad(EventArgs e) +132 
    System.Web.UI.Control.LoadRecursive() +66 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428 

Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5483 

我也尝试过使用Microsoft Ace Oledb 12.0,并尝试通过将其设置为x86和x64,但从配置管理器修复它,但没有运气。 而且还尝试安装Microsoft Access数据库引擎,但仍然没有运气

+0

我试过再做一次,但没有运气。此外,我设置从IIS提前设置的启用32位属性,但仍然得到相同的错误 – Manish 2014-10-28 13:31:20

回答

0

你试过吗?

  1. 右键点击该项目。
  2. 点击属性。
  3. 在配置下属性>调试。
  4. 将Run64bitRuntime设置为false。
+0

谢谢!有效。 – Manish 2016-04-07 07:16:20

+0

如果这是答案,请将其标记为已回答:D hehe – Json 2016-04-09 17:36:44

相关问题