提示报警内容:
System.InvalidOperationException
HResult=0x80131509
Message=未在本地计算机上注册“Microsoft.ACE.OLEDB.16.0”提供程序。
Source=DAL
StackTrace:
在 DAL.OleDbHelper.GetDataSet(String sql, String path) 在 C:\Users\HEAD\Desktop\StudentManager\DAL\Helper\OleDbHelper.cs 中: 第 152 行
在 DAL.ImportDataFromExcel.GetStudentByExcel(String path) 在 C:\Users\HEAD\Desktop\StudentManager\DAL\Helper\ImportDataFromExcel.cs 中: 第 27 行
在 StudentManager.FrmImportData.btnChoseExcel_Click(Object sender, EventArgs e) 在 C:\Users\HEAD\Desktop\StudentManager\StudentManager\FrmImportData.cs 中: 第 35 行
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.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)
在 StudentManager.Program.Main() 在 C:\Users\HEAD\Desktop\StudentManager\StudentManager\Program.cs 中: 第 31 行
下载