none
[求救] 在VS2012 C# 將 Framework4.5 改成 Framework4 結果發生 'Microsoft.ACE.Oledb.12.0' 提供者並未登錄於本機電腦上。 RRS feed

  • 問題

  • 因為發現XP不能安裝Framework4.5,所以就想要降為Framework4。但是發現一降到Framework4就會出現'Microsoft.ACE.Oledb.12.0'

    再升級回來也都是一樣會出現問題,到最後都只能用備份的檔案,麻煩各位前輩指點一下吧,我困在這問題好久了,非常感恩,以下是錯誤訊息:

    System.InvalidOperationException 未處理
      HResult=-2146233079
      Message='Microsoft.ACE.Oledb.12.0' 提供者並未登錄於本機電腦上。
      Source=System.Data
      StackTrace:
           於 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, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
           於 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
           於 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
           於 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
           於 System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
           於 System.Data.OleDb.OleDbConnection.Open()
           於 DataAccess.DataAccessClass.IndustryComboBoxModule(String ConditionString) 於 c:\Users\USER\Desktop\開發專案\EarthworksManagementSystem\DataAccess\DataAccessClass.cs: 行 66
           於 WindowsFormsApplication1.Home.IndustryComboBox() 於 c:\Users\USER\Desktop\開發專案\EarthworksManagementSystem\EarthworksManagementSystem\Home.cs: 行 379
           於 WindowsFormsApplication1.Home.ToClientToolStripMenuItem_Click() 於 c:\Users\USER\Desktop\開發專案\EarthworksManagementSystem\EarthworksManagementSystem\Home.cs: 行 269
           於 WindowsFormsApplication1.Home.VendorAddToolStripMenuItem_Click(Object sender, EventArgs e) 於 c:\Users\USER\Desktop\開發專案\EarthworksManagementSystem\EarthworksManagementSystem\Home.cs: 行 333
           於 System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
           於 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
           於 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
           於 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
           於 System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
           於 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
           於 System.Windows.Forms.Control.WndProc(Message& m)
           於 System.Windows.Forms.ToolStrip.WndProc(Message& m)
           於 System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
           於 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           於 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
           於 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
           於 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           於 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           於 WindowsFormsApplication1.Program.Main() 於 c:\Users\USER\Desktop\開發專案\EarthworksManagementSystem\EarthworksManagementSystem\Program.cs: 行 19
           於 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           於 System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
           於 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
           於 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           於 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           於 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           於 System.Threading.ThreadHelper.ThreadStart()
      InnerException:

    2014年2月24日 上午 09:33

所有回覆