|
-
Aug 11th, 2021, 03:23 PM
#6
Re: ADO.NET Can't Open Database File
Ok here ya go:
Code:
Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
The 'Microsoft.Jet.OLEDB.12.0' provider is not registered on the local machine.
Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.12.0' provider is not registered on the local machine.
at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OleDb.OleDbConnection.Open()
at SQL_Tutorial.Form1.Form1_Load(Object sender, EventArgs e) in D:\Source Code\VB.Net\SQL Tutorial\SQL Tutorial\Form1.vb:line 14
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.CoreLib.dll
----------------------------------------
SQL Tutorial
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Source%20Code/VB.Net/SQL%20Tutorial/SQL%20Tutorial/bin/x86/Debug/net5.0-windows/SQL%20Tutorial.dll
----------------------------------------
Microsoft.VisualBasic.Forms
Assembly Version: 5.0.7.0
Win32 Version: 5.0.721.26307
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.7/Microsoft.VisualBasic.Forms.dll
----------------------------------------
System.Runtime
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Runtime.dll
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 5.0.7.0
Win32 Version: 5.0.721.26307
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.7/System.Windows.Forms.Primitives.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 5.0.7.0
Win32 Version: 5.0.721.26307
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.7/System.Windows.Forms.dll
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Collections.dll
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.ComponentModel.Primitives.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Runtime.InteropServices.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Drawing.Primitives.dll
----------------------------------------
System.Collections.Specialized
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Collections.Specialized.dll
----------------------------------------
System.Security.Permissions
Assembly Version: 5.0.0.0
Win32 Version: 5.0.20.51904
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.7/System.Security.Permissions.dll
----------------------------------------
System.Threading
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Threading.dll
----------------------------------------
System.Security.Principal.Windows
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Security.Principal.Windows.dll
----------------------------------------
System.Security.Claims
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Security.Claims.dll
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/Microsoft.Win32.Primitives.dll
----------------------------------------
System.Threading.Thread
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Threading.Thread.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Drawing.Common
Assembly Version: 5.0.0.2
Win32 Version: 5.0.421.11614
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.7/System.Drawing.Common.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 5.0.721.26307
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.7/Accessibility.dll
----------------------------------------
System.ComponentModel
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.ComponentModel.dll
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.ComponentModel.TypeConverter.dll
----------------------------------------
Microsoft.VisualBasic.Core
Assembly Version: 10.0.6.0
Win32 Version: 11.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/Microsoft.VisualBasic.Core.dll
----------------------------------------
System.Data.Common
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Data.Common.dll
----------------------------------------
System.Xml.ReaderWriter
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.Xml.dll
----------------------------------------
System.Runtime.Extensions
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Runtime.Extensions.dll
----------------------------------------
System.Memory
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Memory.dll
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 5.0.0.0
Win32 Version: 5.0.20.51904
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.7/Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Buffers
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Buffers.dll
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Collections.NonGeneric.dll
----------------------------------------
System.Data.OleDb
Assembly Version: 5.0.0.0
Win32 Version: 5.0.20.51904
CodeBase: file:///D:/Source%20Code/VB.Net/SQL%20Tutorial/SQL%20Tutorial/bin/x86/Debug/net5.0-windows/runtimes/win/lib/netstandard2.0/System.Data.OleDb.dll
----------------------------------------
netstandard
Assembly Version: 2.1.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/netstandard.dll
----------------------------------------
System.Transactions.Local
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Transactions.Local.dll
----------------------------------------
System.Diagnostics.PerformanceCounter
Assembly Version: 5.0.0.1
Win32 Version: 5.0.321.7212
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.7/System.Diagnostics.PerformanceCounter.dll
----------------------------------------
System.Collections.Concurrent
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Collections.Concurrent.dll
----------------------------------------
Microsoft.Win32.Registry
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/Microsoft.Win32.Registry.dll
----------------------------------------
System.Diagnostics.Tracing
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Diagnostics.Tracing.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Diagnostics.FileVersionInfo.dll
----------------------------------------
System.Runtime.InteropServices.RuntimeInformation
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Runtime.InteropServices.RuntimeInformation.dll
----------------------------------------
System.Private.Uri
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Private.Uri.dll
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Reflection.Metadata.dll
----------------------------------------
System.IO.FileSystem
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.IO.FileSystem.dll
----------------------------------------
System.Collections.Immutable
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Collections.Immutable.dll
----------------------------------------
System.Text.Encoding.Extensions
Assembly Version: 5.0.0.0
Win32 Version: 5.0.721.25508
CodeBase: file:///C:/Program%20Files%20(x86)/dotnet/shared/Microsoft.NETCore.App/5.0.7/System.Text.Encoding.Extensions.dll
----------------------------------------
************** JIT Debugging **************
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|